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