diff options
| author | Johan Hovold <johan@kernel.org> | 2019-10-09 12:48:42 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-17 13:40:59 -0700 |
| commit | ded3c707e373f58ad5c9a7a85459387ec5e19009 (patch) | |
| tree | 975f8f5500232c6c655b0e408db89ffe673fcb55 /tools/perf/scripts/python | |
| parent | f723d7ea08e2c69ac9ecd87828c650745270fb98 (diff) | |
USB: iowarrior: fix use-after-free on release
commit 80cd5479b525093a56ef768553045741af61b250 upstream.
The driver was accessing its struct usb_interface from its release()
callback without holding a reference. This would lead to a
use-after-free whenever debugging was enabled and the device was
disconnected while its character device was open.
Fixes: 549e83500b80 ("USB: iowarrior: Convert local dbg macro to dev_dbg")
Cc: stable <stable@vger.kernel.org> # 3.16
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191009104846.5925-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
