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