commit | a14430db686b8e459e1cf070a6ecf391515c9ab9 | [log] [tgz] |
---|---|---|
author | Johan Hovold <jhovold@gmail.com> | Tue Mar 19 09:21:20 2013 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 21 15:59:04 2013 -0700 |
tree | 43eac5d5bebc70868b3a62dfe5674fde5cd44d87 | |
parent | e670c6af12517d08a403487b1122eecf506021cf [diff] |
USB: mos7840: 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>