From: Alexey Khoroshilov Date: Fri, 18 Oct 2013 21:49:38 +0000 (+0400) Subject: USB: wusbcore: fix usb_dev leaks X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~66^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2c28cfc26e53101c39d8052777ea9d465c718e0;p=pandora-kernel.git USB: wusbcore: fix usb_dev leaks cbaf_probe() does cbaf->usb_dev = usb_get_dev(interface_to_usbdev(iface)), but there is no usb_put_dev() anywhere in cbaf. The patch adds usb_put_dev() to cbaf_disconnect() and to an error path in cbaf_probe(). Also it adds missed usb_put_intf(iface) to the error path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed