[media] usbtv: fix leak at failure path in usbtv_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 23 May 2014 20:47:07 +0000 (17:47 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 17 Jun 2014 15:04:46 +0000 (12:04 -0300)
commitebdae6507b00c77f51b0c3ef70d25f65699f5644
treeb961890e97ea8cefc94e572c5dbe1bb0f94763d3
parentf8d36b8960019da9ba46721bd541af61d7497a00
[media] usbtv: fix leak at failure path in usbtv_probe()

Error handling code in usbtv_probe() misses usb_put_dev().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/usbtv/usbtv-core.c