Re: [PATCH] orinoco_usb: fix memory leak in ezusb_access_ltv() when device disconnected

2013-06-13 Thread Dave Kilroy
On 13/06/2013 21:26, Alexey Khoroshilov wrote: If "device is disconnected" check occurs to be true in ezusb_access_ltv(), it just return -ENODEV. But that means request_context is leaked since there are no any references to it anymore. The patch adds a call to ezusb_request_context_put() before r

[PATCH] orinoco_usb: fix memory leak in ezusb_access_ltv() when device disconnected

2013-06-13 Thread Alexey Khoroshilov
If "device is disconnected" check occurs to be true in ezusb_access_ltv(), it just return -ENODEV. But that means request_context is leaked since there are no any references to it anymore. The patch adds a call to ezusb_request_context_put() before return. Found by Linux Driver Verification projec