From: Johan Hovold Date: Tue, 19 Mar 2013 08:21:26 +0000 (+0100) Subject: USB: ti_usb_3410_5052: fix use-after-free in TIOCMIWAIT X-Git-Tag: v3.2.44~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3668b9c17765cacf411effc4fc6e44099ac30800;p=pandora-kernel.git USB: ti_usb_3410_5052: fix use-after-free in TIOCMIWAIT commit fc98ab873aa3dbe783ce56a2ffdbbe7c7609521a upstream. Use the port wait queue and make sure to check the serial disconnected flag before accessing private port data after waking up. This is is needed as the private port data (including the wait queue itself) can be gone when waking up after a disconnect. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed