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