Re: [PATCH 2/2] rsi: fix memory leaks and error handling in rsi_91x_usb

2014-06-27 Thread Jonas Gorski
On Fri, Jun 27, 2014 at 12:51 AM, Alexey Khoroshilov wrote: > 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(). >

Re: [PATCH 2/2] rsi: fix memory leaks and error handling in rsi_91x_usb

2014-06-27 Thread Jonas Gorski
On Fri, Jun 27, 2014 at 12:51 AM, Alexey Khoroshilov khoroshi...@ispras.ru wrote: 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

[PATCH 2/2] rsi: fix memory leaks and error handling in rsi_91x_usb

2014-06-26 Thread Alexey Khoroshilov
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

[PATCH 2/2] rsi: fix memory leaks and error handling in rsi_91x_usb

2014-06-26 Thread Alexey Khoroshilov
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