From: Johan Hovold Date: Tue, 19 Mar 2013 08:21:25 +0000 (+0100) Subject: USB: ssu100: fix use-after-free in TIOCMIWAIT X-Git-Tag: v3.2.44~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8d6465295472939d209947962e7319b555dc55c;p=pandora-kernel.git USB: ssu100: fix use-after-free in TIOCMIWAIT commit 43a66b4c417ad15f6d2f632ce67ad195bdf999e8 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