summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorRomain Izard <romain.izard.pro@gmail.com>2018-09-20 16:49:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-13 09:33:15 +0200
commit274a367121ae4b0db3d3b4bf15fcb091d005cfba (patch)
tree9a78b6c3e45f2c403e57e3bc1d839a492327ed45 /arch/powerpc/lib/code-patching.c
parent6f0a2f6649b7642283dd76101db0862dc62263ce (diff)
usb: cdc_acm: Do not leak URB buffers
commit f2924d4b16ae138c2de6a0e73f526fb638330858 upstream. 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 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions