]> git.baikalelectronics.ru Git - kernel.git/commit
USB: usb_wwan: fix bulk-urb allocation
authorJohan Hovold <jhovold@gmail.com>
Fri, 26 Oct 2012 16:44:20 +0000 (18:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 19:46:51 +0000 (12:46 -0700)
commit18f39373ab2f95875dbacbc0aaa3e3d3d87605f9
tree860d7e18f5698d0c975075dc86dfd45097a859d8
parentf493e7e734ac3b24c0d84be8424199d84edd5b9c
USB: usb_wwan: fix bulk-urb allocation

Make sure we do not allocate urbs if we do not have a bulk endpoint.

Legacy code used incorrect assumption to test for bulk endpoints.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb_wwan.c