OpenCloudOS-Kernel/drivers/usb/usbip
Alexey Khoroshilov 3ff6744575 usbip: fix error handling in stub_probe()
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 <khoroshilov@ispras.ru>
Acked-by: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-12-02 16:15:02 -08:00
..
Kconfig
Makefile
README
stub.h
stub_dev.c usbip: fix error handling in stub_probe() 2014-12-02 16:15:02 -08:00
stub_main.c
stub_rx.c
stub_tx.c
usbip_common.c
usbip_common.h
usbip_event.c
usbip_protocol.txt
vhci.h
vhci_hcd.c USB-IP: Deletion of unnecessary checks before the function call "usb_put_dev" 2014-11-24 17:23:41 -08:00
vhci_rx.c
vhci_sysfs.c
vhci_tx.c

README

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface
	- document the protocol

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>