Re: [PATCH] usbip: fix error handling in stub_probe()

2014-12-01 Thread Valentina Manea
On Sat, Nov 29, 2014 at 12:29 AM, Alexey Khoroshilov wrote: > If usb_hub_claim_port() fails, no resources are deallocated and > if stub_add_files() fails, port is not released. > > The patch fixes these issues and rearranges error handling code. > > Found by Linux Driver Verification project (linu

[PATCH] usbip: fix error handling in stub_probe()

2014-11-28 Thread Alexey Khoroshilov
If usb_hub_claim_port() fails, no resources are deallocated and if stub_add_files() fails, port is not released. The patch fixes these issues and rearranges error handling code. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/usb/usb