From: Alexey Khoroshilov Date: Fri, 15 Nov 2013 20:46:24 +0000 (+0400) Subject: staging: gdm724x: fix leak at failure path in gdm_usb_probe() X-Git-Tag: v3.14-rc1~150^2~740 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a34c72b348703da43d605441b86a61688ec19a0d;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed