summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-11-16 00:46:24 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-25 12:29:15 -0800
commita34c72b348703da43d605441b86a61688ec19a0d (patch)
tree895ebe50287fc7b2d09d5fe559a738b10a7d4427 /include/linux
parent5e1284758a6702117b622a4983c5829ea583df2c (diff)
staging: gdm724x: fix leak at failure path in gdm_usb_probe()
Error handling code in gdm_usb_probe() deallocates all resources, but calls usb_get_dev(usbdev) and returns error code after that. The patch fixes it and, by the way, several other issues: - no need to use GFP_ATOMIC in probe(); - return -ENODEV instead of -1; - kmalloc+memset -> kzalloc Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions