commit | 40509ca982c00c4b70fc00be887509feca0bff15 | [log] [tgz] |
---|---|---|
author | Johan Hovold <jhovold@gmail.com> | Tue Mar 19 09:21:22 2013 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 21 15:59:05 2013 -0700 |
tree | 3e2bd8f1336ea2690086bb596e6d87bc90420955 | |
parent | 8edfdab37157d2683e51b8be5d3d5697f66a9f7b [diff] |
USB: pl2303: 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>