summaryrefslogtreecommitdiff
path: root/drivers/net/irda/w83977af_ir.h
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2014-06-27 02:51:25 +0400
committerJohn W. Linville <linville@tuxdriver.com>2014-07-01 22:26:26 +0400
commit50591c60a93ad3a8d13833cb8048b02d3c2c4bd4 (patch)
tree8f55dc91e96a9fed1b8f9775001cb6406ac9f252 /drivers/net/irda/w83977af_ir.h
parent5bc5ca85d54e0176cb967f550093f42bb0d65b67 (diff)
downloadlinux-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/irda/w83977af_ir.h')
0 files changed, 0 insertions, 0 deletions