]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: f81232: fix use-after-free in TIOCMIWAIT
authorJohan Hovold <jhovold@gmail.com>
Tue, 19 Mar 2013 08:21:14 +0000 (09:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:04 +0000 (09:26 -0700)
commit4d2206e46ae13b5c724eb7d971cd45e92103cba9
treec733818abe89bd34416c27fb12474d56e460ddf2
parent621f6bbc6b0b92a3c3b8e49c8f381f48f0c557a0
USB: f81232: fix use-after-free in TIOCMIWAIT

commit 508f940f1407656076a2e7d8f7fa059b567ecac2 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/f81232.c