From: Alexey Khoroshilov Date: Wed, 4 Sep 2013 21:46:09 +0000 (+0400) Subject: can: pcan_usb_core: fix memory leak on failure paths in peak_usb_start() X-Git-Tag: v3.12-rc4~30^2~41^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f37d6e701f2a3a04e66690397340a6417f6e053f;p=pandora-kernel.git can: pcan_usb_core: fix memory leak on failure paths in peak_usb_start() Tx and rx urbs are not deallocated if something goes wrong in peak_usb_start(). The patch fixes error handling to deallocate all the resources. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Acked-by: Stephane Grosjean Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed