Skip to content
Commit 100f2cde authored by Guido Kiener's avatar Guido Kiener Committed by Greg Kroah-Hartman
Browse files

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: default avatarGuido Kiener <guido.kiener@rohde-schwarz.com>
Fixes: 658f24f4 ("usb: usbtmc: Add ioctl for generic requests on control")
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4d2a863f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment