]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: ssu100: fix use-after-free in TIOCMIWAIT
authorJohan Hovold <jhovold@gmail.com>
Tue, 19 Mar 2013 08:21:25 +0000 (09:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Mar 2013 22:59:05 +0000 (15:59 -0700)
commit43a66b4c417ad15f6d2f632ce67ad195bdf999e8
treec0211faa5c8df0612640b6e6dc39baad0ebd08d5
parentdbcea7615d8d7d58f6ff49d2c5568113f70effe9
USB: ssu100: 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 <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ssu100.c