From: Alexey Khoroshilov Date: Mon, 10 Jun 2013 19:29:16 +0000 (+0400) Subject: staging: ft1000: fix memory leak on error path in ft1000_probe() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~182 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=773fe724ab7ca9c32e2411eb2d85ea455e82714e;p=pandora-kernel.git staging: ft1000: fix memory leak on error path in ft1000_probe() ft1000dev->tx_urb and ft1000dev->rx_urb are not deallocated if something goes wrong in ft1000_probe(). Also there is no check for success of urb allocation. The patch fixes the both issues. By the way, there is no sense in GFP_ATOMIC for urb allocation here, so it is changed to GFP_KERNEL. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed