diff options
| author | Romain Izard <[email protected]> | 2018-09-20 14:49:04 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-10-02 00:59:02 +0000 |
| commit | f2924d4b16ae138c2de6a0e73f526fb638330858 (patch) | |
| tree | 2236f1758b03e710e950ee39bbb452163a8fc7e2 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | Merge tag 'usb-serial-4.19-rc7' of https://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-f2924d4b16ae138c2de6a0e73f526fb638330858.tar.gz kernel-f2924d4b16ae138c2de6a0e73f526fb638330858.zip | |
usb: cdc_acm: Do not leak URB buffers
When the ACM TTY port is disconnected, the URBs it uses must be killed, and
then the buffers must be freed. Unfortunately a previous refactor removed
the code freeing the buffers because it looked extremely similar to the
code killing the URBs.
As a result, there were many new leaks for each plug/unplug cycle of a
CDC-ACM device, that were detected by kmemleak.
Restore the missing code, and the memory leak is removed.
Fixes: ba8c931ded8d ("cdc-acm: refactor killing urbs")
Signed-off-by: Romain Izard <[email protected]>
Acked-by: Oliver Neukum <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
