summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-10-19 01:49:38 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-20 01:23:15 +0400
commitf2c28cfc26e53101c39d8052777ea9d465c718e0 (patch)
tree14e4c7d56804fb978b08e301c1c2b7e2e39ecd9e /drivers/phy
parentf7d4ffa923731463848a3e540b4984f6caa9422f (diff)
downloadlinux-f2c28cfc26e53101c39d8052777ea9d465c718e0.tar.xz
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 <khoroshilov@ispras.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/phy')
0 files changed, 0 insertions, 0 deletions