From: Alexey Khoroshilov Date: Thu, 10 Jul 2014 23:31:41 +0000 (-0400) Subject: staging: gdm724x: fix leak at failure path in init_usb() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~936 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22505b258be0c112b71ef5a794579965c540188f;p=pandora-kernel.git staging: gdm724x: fix leak at failure path in init_usb() If an allocation in init_usb() failed, it returns without deallocation of already allocated resources. The patch fix it and replaces GFP_ATOMIC by GFP_KERNEL in alloc_tx_sdu_struct() and alloc_rx_struct() as long as they are called from probe only. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed