From: Alexey Khoroshilov Date: Fri, 11 Apr 2014 22:10:45 +0000 (+0400) Subject: USB: cdc-acm: fix double usb_autopm_put_interface() in acm_port_activate() X-Git-Tag: omap-for-v3.16/soc-signed~47^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=070c0b17f6a1ba39dff9be112218127e7e8fd456;p=pandora-kernel.git 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 Acked-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed