[media] 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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 02:55:20 +0000 (23:55 -0300)
commitafd270d1a45043cef14341bcceff62ed50e8dc9a
tree1d4eb5414cdb217841453d083d4c48f45fd136d8
parentcc7d2dfb75b3ac0f248801ceed65f69465eb0389
[media] usbvision: fix leak of usb_dev on failure paths in usbvision_probe()

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>
drivers/media/usb/usbvision/usbvision-video.c