linux_dsm_epyc7002/drivers/usb/wusbcore
Alexey Khoroshilov f2c28cfc26 USB: wusbcore: fix usb_dev leaks
cbaf_probe() does cbaf->usb_dev = usb_get_dev(interface_to_usbdev(iface)),
but there is no usb_put_dev() anywhere in cbaf.

The patch adds usb_put_dev() to cbaf_disconnect() and to an error path in cbaf_probe().
Also it adds missed usb_put_intf(iface) to the error path.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-19 14:23:15 -07:00
..
cbaf.c USB: wusbcore: fix usb_dev leaks 2013-10-19 14:23:15 -07:00
crypto.c Fix common misspellings 2011-03-31 11:26:23 -03:00
dev-sysfs.c uwb: use dev_dbg() for debug messages 2008-12-22 18:22:50 +00:00
devconnect.c usb: Remove unnecessary semicolons 2013-10-11 16:26:46 -07:00
Kconfig USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
mmc.c USB: HWA: fix device probe failure 2013-06-24 16:20:43 -07:00
pal.c USB: HWA: fix device probe failure 2013-06-24 16:20:43 -07:00
reservation.c USB: HWA: fix device probe failure 2013-06-24 16:20:43 -07:00
rh.c wusbcore: fix root hub hub_status_data to only return > 0 if status has actually changed 2013-08-12 13:13:32 -07:00
security.c wusb: Fix potential memory leak in wusb_dev_sec_add() 2012-08-10 12:06:38 -07:00
wa-hc.c usb: wusbcore: rename fields in struct wahc 2013-09-26 16:27:20 -07:00
wa-hc.h usb: wusbcore: serialize access to the HWA data out endpoint 2013-10-19 05:19:21 -07:00
wa-nep.c wusbcore wire adapter: ignore HWA_NOTIF_BPST_ADJ notifications 2013-06-06 13:11:14 -07:00
wa-rpipe.c usb: wusbcore: preserve endianness of cached descriptors 2013-10-19 05:19:21 -07:00
wa-xfer.c usb: wusbcore: serialize access to the HWA data out endpoint 2013-10-19 05:19:21 -07:00
wusbhc.c USB: HWA: fix device probe failure 2013-06-24 16:20:43 -07:00
wusbhc.h wusbcore: add sysfs attribute for retry count 2013-06-24 16:19:02 -07:00