From: Thomas Pugliese Date: Thu, 15 Aug 2013 19:37:41 +0000 (-0500) Subject: USB: WUSBCORE: fix resource cleanup in error path in __wa_xfer_setup_segs X-Git-Tag: v3.12-rc1~186^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11b1bf81bf68cab0ad7d7d4d08dbfb236d5cbcaa;p=pandora-kernel.git USB: WUSBCORE: fix resource cleanup in error path in __wa_xfer_setup_segs Use usb_free_urb instead of kfree in error path and point to the correct URB. Also remember to clean up the sg list for the URB if it was allocated. Signed-off-by: Thomas Pugliese Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed