]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
usb: usbtmc: Fix memory leak in usbtmc_ioctl_request
authorGuido Kiener <guido.kiener@rohde-schwarz.com>
Mon, 24 Sep 2018 23:30:29 +0000 (01:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 13:12:08 +0000 (15:12 +0200)
commit100f2cdeadffb3e63121d1d59a60a9882258c415
treed63c1b075ce7ced0c363537d0bdf181357fd2877
parent4d2a863fe9b952d7147bd169d54062e71f343415
usb: usbtmc: Fix memory leak in usbtmc_ioctl_request

Kernel memory is allocated twice in new function
usbtmc_ioctl_request and creates a memory leak.
This fix removes the superfluous kmalloc().

Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Fixes: 658f24f4523e ("usb: usbtmc: Add ioctl for generic requests on control")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c