[media] tlg2300: fix leak at failure path in poseidon_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 30 May 2014 22:20:11 +0000 (19:20 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 4 Jul 2014 18:45:20 +0000 (15:45 -0300)
commite7d40c37215b2048685e72a0bb0101578c2b0a62
treec9a550206c62baa5896681e2657deb7a96a23285
parenteeff336ccf6b812821e7bf534e554986efc3e96f
[media] tlg2300: fix leak at failure path in poseidon_probe()

Error handling code in poseidon_probe() misses usb_put_intf()
and usb_put_dev().

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 <m.chehab@samsung.com>
drivers/media/usb/tlg2300/pd-main.c