summaryrefslogtreecommitdiffstats
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2015-01-16 19:55:26 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-02 10:47:15 -0200
commit5eeb3014827f44ea7de43c865118cb2095ad030e (patch)
tree4939b10b67a62cd9b244c7642edd028bdc2c4c84 /tools/lib/python
parente99f0115e56ce4c4cda269cd21b25f7e14fa548f (diff)
downloadlinux-5eeb3014827f44ea7de43c865118cb2095ad030e.tar.gz
linux-5eeb3014827f44ea7de43c865118cb2095ad030e.zip
[media] cx231xx: fix usbdev leak on failure paths in cx231xx_usb_probe()
Commit b7085c086475 ("cx231xx: convert from pr_foo to dev_foo") moves usb_get_dev(interface_to_usbdev(interface)) to the beginning of cx231xx_usb_probe() to use udev->dev in dev_err(), but it does not make sure usbdev is put on all failure paths. Later dev_err(udev->dev) was replaced by dev_err(d). So the patch moves usb_get_dev() below (before the first use) and fixes another failure path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions