diff options
author | Johan Hovold <[email protected]> | 2019-09-26 11:12:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-10-04 11:11:08 +0200 |
commit | eb7f5a490c5edfe8126f64bc58b9ba2edef0a425 (patch) | |
tree | 8321689dd45ec34034df33a2ef9e73a40105c1b4 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 976392650a00651ea29f64c5dc54f059aa54e0d1 (diff) |
USB: usblcd: fix I/O after disconnect
Make sure to stop all I/O on disconnect by adding a disconnected flag
which is used to prevent new I/O from being started and by stopping all
ongoing I/O before returning.
This also fixes a potential use-after-free on driver unbind in case the
driver data is freed before the completion handler has run.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <[email protected]> # 7bbe990c989e
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions