diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-04-12 02:10:45 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-16 13:56:08 -0700 |
commit | 070c0b17f6a1ba39dff9be112218127e7e8fd456 (patch) | |
tree | 234e8b760c190f6a93a8f8de0776aaf2e93f5cd0 /drivers/usb/core/hcd-pci.c | |
parent | f9076e28013e448ba2a905ae905ac9b53f8a2e16 (diff) | |
download | linux-070c0b17f6a1ba39dff9be112218127e7e8fd456.tar.bz2 |
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>
Diffstat (limited to 'drivers/usb/core/hcd-pci.c')
0 files changed, 0 insertions, 0 deletions