]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: quatech2: fix use-after-free in TIOCMIWAIT
authorJohan Hovold <jhovold@gmail.com>
Tue, 19 Mar 2013 08:21:23 +0000 (09:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:03 +0000 (09:26 -0700)
commit957bed048fad74aa91c50420dc9c587d08f3ab38
treecc065aa19e5b218a14bee1a87a46292a8b46e36b
parentf7b40a0bd1697e5b4f001ed043f03e298915f7c2
USB: quatech2: fix use-after-free in TIOCMIWAIT

commit 69f87f40d2b98e8b4ab82a121fd2bd584690b887 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 <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/quatech2.c