From: Johan Hovold Date: Mon, 26 May 2014 17:23:16 +0000 (+0200) Subject: USB: usb_wwan: fix urb leak at shutdown X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~34^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79eed03e77d481b55d85d1cfe5a1636a0d3897fd;p=pandora-kernel.git USB: usb_wwan: fix urb leak at shutdown The delayed-write queue was never emptied at shutdown (close), something which could lead to leaked urbs if the port is closed before being runtime resumed due to a write. When this happens the output buffer would not drain on close (closing_wait timeout), and after consecutive opens, writes could be corrupted with previously buffered data, transfered with reduced throughput or completely blocked. Note that unbusy_queued_urb() was simply moved out of CONFIG_PM. Fixes: 383cedc3bb43 ("USB: serial: full autosuspend support for the option driver") Cc: # v2.6.32 Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed