]> git.kernelconcepts.de Git - karo-tx-linux.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>
Mon, 26 Nov 2012 20:14:17 +0000 (12:14 -0800)
commitc00d81ec46b6a4c6ad3987fde9a984acecebbbd1
tree30a5b6d7973dc8755beca5fa1d20356c6f419851
parent17ca63a0b5ec5e2747ffa1a69f6e28a04b7c9fcb
USB: usb_wwan: fix bulk-urb allocation

commit 8e493ca1767d4951ed1322abaa74d6edbca29918 upstream.

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>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb_wwan.c