From: Johan Hovold Date: Tue, 19 Mar 2013 08:21:17 +0000 (+0100) Subject: USB: io_ti: fix use-after-free in TIOCMIWAIT X-Git-Tag: v3.2.44~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d369d8ad2aea254f5685f6565bf31175a1c617;p=pandora-kernel.git USB: io_ti: fix use-after-free in TIOCMIWAIT commit 7b2459690584f239650a365f3411ba2ec1c6d1e0 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed