]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit12b0e1643a283b6bd29c37d58553028ffa6f34d1
treeb6576f4929f9bf7c83eeb3a15aed038380073078
parent53738392fe6dad9b5e82ccab3de592d075aadc79
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