[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)
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

Simple merge