diff options
author | Romain Izard | 2018-09-20 16:49:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-10-02 02:59:02 +0200 |
commit | f2924d4b16ae138c2de6a0e73f526fb638330858 (patch) | |
tree | 2236f1758b03e710e950ee39bbb452163a8fc7e2 /net/tipc/link.c | |
parent | Merge tag 'usb-serial-4.19-rc7' of https://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | kernel-qcow2-linux-f2924d4b16ae138c2de6a0e73f526fb638330858.tar.gz kernel-qcow2-linux-f2924d4b16ae138c2de6a0e73f526fb638330858.tar.xz kernel-qcow2-linux-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 <romain.izard.pro@gmail.com>
Acked-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc/link.c')
0 files changed, 0 insertions, 0 deletions