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

commit 333576255d4cfc53efd056aad438568184b36af6 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/io_edgeport.c