commit | 100f2cdeadffb3e63121d1d59a60a9882258c415 | [log] [tgz] |
---|---|---|
author | Guido Kiener <guido.kiener@rohde-schwarz.com> | Tue Sep 25 01:30:29 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Sep 28 15:12:08 2018 +0200 |
tree | d63c1b075ce7ced0c363537d0bdf181357fd2877 | |
parent | 4d2a863fe9b952d7147bd169d54062e71f343415 [diff] |
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>