]> git.baikalelectronics.ru Git - kernel.git/commit
[media] adv7180: free an interrupt on failure paths in init_device()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 14 Mar 2014 21:04:03 +0000 (18:04 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 24 Mar 2014 20:23:09 +0000 (17:23 -0300)
commiteb7172f3e9b175425524cde2efd8f7aae5ac0bdd
treee1dbc84262106d69a67c41a9fcd2117e834eaefe
parent539e2377fd7051a1ea884b54fdd917baabbde801
[media] adv7180: free an interrupt on failure paths in init_device()

There is request_irq() in init_device(), but the interrupt is not removed
on failure paths. The patch adds proper error handling.

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/i2c/adv7180.c