From: Alexey Khoroshilov Date: Thu, 26 Jun 2014 22:51:25 +0000 (+0400) Subject: rsi: fix memory leaks and error handling in rsi_91x_usb X-Git-Tag: cleanup-for-v3.18~108^2~210^2~46^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50591c60a93ad3a8d13833cb8048b02d3c2c4bd4;p=pandora-kernel.git rsi: fix memory leaks and error handling in rsi_91x_usb The patch fixes a couple of issues: - absence of deallocation of rsi_dev->rx_usb_urb[0] in the driver; - potential NULL pointer dereference because of lack of checks for memory allocation success in rsi_init_usb_interface(). By the way, it makes rsi_probe() returning error code instead of 1 and fixes comments regarding returning values. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: John W. Linville --- Reading git-diff-tree failed