usbvision: fix leak of usb_dev on failure paths in usbvision_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 27 Mar 2015 22:39:09 +0000 (19:39 -0300)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jun 2016 08:42:50 +0000 (10:42 +0200)
commitc5b5d09d9bb003bac7747b2c41d0f4454e98b684
treeecf4f81a3700b700ae35cd6459730880d10f5ffe
parent6645b8275f9de0704892dff783da45eeb85a1ae9
usbvision: fix leak of usb_dev on failure paths in usbvision_probe()

commit afd270d1a45043cef14341bcceff62ed50e8dc9a upstream.

There is no usb_put_dev() on failure paths in usbvision_probe().

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/media/usb/usbvision/usbvision-video.c