]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit74496f3afce15a7c9468dadd4e35e638abbe8854
tree6819e3e9cf6bd615dc64144f366a178b02ee274a
parent6a2d4f95d601531bbd0fe04f0098f3a7a569830a
[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