upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:24 +0000 (11:54 +0900)
commit7bbd9e5843f64d8f1248c779332812f7fd27e03d
tree970987a6743376e6ce14fe020a61badcc786daf4
parent340fa499db6c990ed40e9e1127850448bd9a3131
upstream: [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