From: Alexey Khoroshilov Date: Fri, 28 Nov 2014 22:29:10 +0000 (+0300) Subject: usbip: fix error handling in stub_probe() X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff67445750a84de67faaf52c6e1895cb09f2c56;p=pandora-kernel.git 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 Acked-by: Valentina Manea Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed