upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:58:46 +0000 (11:58 +0900)
commit2bc5eba7c62ab7ebfecbf37c324b8a000ffdde35
treebd8eee4bc6c9f014ccf10995ad13c232303c5d59
parent457b9dd7465fac046af42a6595c66e2435129365
upstream: [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