From: Johan Hovold Date: Tue, 19 Mar 2013 08:21:24 +0000 (+0100) Subject: USB: spcp8x5: fix use-after-free in TIOCMIWAIT X-Git-Tag: v3.9-rc4~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbcea7615d8d7d58f6ff49d2c5568113f70effe9;p=pandora-kernel.git USB: spcp8x5: fix use-after-free in TIOCMIWAIT 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. Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed