USB: cdc-wdm: fix wdm_find_device* return value
authorBjørn Mork <bjorn@mork.no>
Mon, 10 Sep 2012 20:17:34 +0000 (22:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:33:00 +0000 (15:33 -0700)
commit6a44886899ef8cc396e230e492e6a56a883889f3
treeb6576f4929f9bf7c83eeb3a15aed038380073078
parentf08dea734844aa42ec57c229b0b73b3d7d21f810
USB: cdc-wdm: fix wdm_find_device* return value

A logic error made the wdm_find_device* functions
return a bogus pointer into static data instead of
the intended NULL no matching device was found.

Cc: stable <stable@vger.kernel.org> # v3.4+
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c