diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-06-27 02:51:25 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-01 22:26:26 +0400 |
commit | 50591c60a93ad3a8d13833cb8048b02d3c2c4bd4 (patch) | |
tree | 8f55dc91e96a9fed1b8f9775001cb6406ac9f252 /drivers/net/wireless/ipw2x00 | |
parent | 5bc5ca85d54e0176cb967f550093f42bb0d65b67 (diff) | |
download | linux-50591c60a93ad3a8d13833cb8048b02d3c2c4bd4.tar.xz |
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 <khoroshilov@ispras.ru>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00')
0 files changed, 0 insertions, 0 deletions