linux/drivers/usb/class
Alexey Khoroshilov 070c0b17f6 USB: cdc-acm: fix double usb_autopm_put_interface() in acm_port_activate()
If acm_submit_read_urbs() fails in acm_port_activate(), error handling
code calls usb_autopm_put_interface() while it is already called
before acm_submit_read_urbs(). The patch reorganizes error handling code
to avoid double decrement of USB interface's PM-usage counter.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-16 13:56:08 -07:00
..
cdc-acm.c USB: cdc-acm: fix double usb_autopm_put_interface() in acm_port_activate() 2014-04-16 13:56:08 -07:00
cdc-acm.h cdc-acm: add TIOCMIWAIT 2013-12-03 10:23:46 -08:00
cdc-wdm.c usb: cdc-wdm: resp_count can be 0 even if WDM_READ is set 2014-01-12 20:13:28 -08: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 usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00
usbtmc.c usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00