linux/drivers/usb/class
Johan Hovold 5e50afb227 USB: usbtmc: fix probe error path
commit 2e47c53503 upstream.

Make sure to initialise the return value to avoid having allocation
failures going unnoticed when allocating interrupt-endpoint resources.

This prevents use-after-free or worse when the device is later unbound.

Fixes: dbf3e7f654 ("Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.")
Cc: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-03-30 09:41:24 +02:00
..
cdc-acm.c USB: cdc-acm: add device id for GW Instek AFG-125 2017-01-06 10:40:11 +01:00
cdc-acm.h cdc-acm: fix wrong pipe type on rx interrupt xfers 2016-08-15 16:30:56 +02:00
cdc-wdm.c cdc-wdm: add terminating newline 2016-09-09 14:13:24 +02:00
Kconfig USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
Makefile USB: add USB test and measurement class driver 2008-10-17 14:40:51 -07:00
usblp.c usblp: do not set TASK_INTERRUPTIBLE before lock 2015-11-19 16:31:42 -08:00
usbtmc.c USB: usbtmc: fix probe error path 2017-03-30 09:41:24 +02:00