[media] as102: fix leaks at failure paths in as102_usb_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 27 Dec 2013 21:18:39 +0000 (18:18 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 10:55:58 +0000 (08:55 -0200)
commitcd19f7d3e39b3160595d56bb3e3a2bf4f7f4669c
tree6819e3e9cf6bd615dc64144f366a178b02ee274a
parent42f8f39e278b834ab2b90419f9acbdb02472cdeb
[media] as102: fix leaks at failure paths in as102_usb_probe()

Failure handling is incomplete in as102_usb_probe().
The patch implements proper resource deallocations.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/as102/as102_usb_drv.c