Files
linux/drivers/usb/misc
Alan Stern 8cf061d919 usb: usbtest: fix NULL pointer dereference
commit 7c80f9e4a5 upstream.

If the usbtest driver encounters a device with an IN bulk endpoint but
no OUT bulk endpoint, it will try to dereference a NULL pointer
(out->desc.bEndpointAddress).  The problem can be solved by adding a
missing test.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-18 11:22:24 +01:00
..
2016-09-13 17:24:24 +02:00
2016-08-09 15:49:01 +02:00
2017-03-30 09:41:24 +02:00
2016-08-09 15:49:01 +02:00
2005-04-16 15:20:36 -07:00
2016-04-29 15:29:18 -07:00
2016-04-29 15:29:18 -07:00
2016-08-09 15:49:01 +02:00
2017-03-30 09:41:24 +02:00