]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 2 Oct 2012 17:39:37 +0000 (10:39 -0700)
commit3185f2bc212f82e8237f613adb9469359e413233
treebf73cfe493aa5f82da5f81e0ee7c0676993ba091
parent1e210fa515c902c869bcd27679ae305b468a73f5
USB: cdc-wdm: fix wdm_find_device* return value

commit 6a44886899ef8cc396e230e492e6a56a883889f3 upstream.

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.

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