linux/drivers/media/rc/img-ir
Sifan Naeem 80ccf4ad06 [media] rc: img-ir: fix error in parameters passed to irq_free()
img_ir_remove() passes a pointer to the ISR function as the 2nd
parameter to irq_free() instead of a pointer to the device data
structure.
This issue causes unloading img-ir module to fail with the below
warning after building and loading img-ir as a module.

WARNING: CPU: 2 PID: 155 at ../kernel/irq/manage.c:1278
__free_irq+0xb4/0x214() Trying to free already-free IRQ 58
Modules linked in: img_ir(-)
CPU: 2 PID: 155 Comm: rmmod Not tainted 3.14.0 #55 ...
Call Trace:
...
[<8048d420>] __free_irq+0xb4/0x214
[<8048d6b4>] free_irq+0xac/0xf4
[<c009b130>] img_ir_remove+0x54/0xd4 [img_ir] [<8073ded0>]
platform_drv_remove+0x30/0x54 ...

Fixes: 160a8f8aec ("[media] rc: img-ir: add base driver")

Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Cc: <stable@vger.kernel.org> # 3.15+
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-04-08 12:52:50 -03:00
..
img-ir-core.c [media] rc: img-ir: fix error in parameters passed to irq_free() 2015-04-08 12:52:50 -03:00
img-ir-hw.c [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
img-ir-hw.h [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
img-ir-jvc.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir-nec.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir-raw.c [media] rc: img-ir: Expand copyright headers with GPL notices 2014-06-17 12:04:55 -03:00
img-ir-raw.h [media] rc: img-ir: Expand copyright headers with GPL notices 2014-06-17 12:04:55 -03:00
img-ir-rc5.c [media] rc: img-ir: add philips rc5 decoder module 2014-12-23 15:16:40 -02:00
img-ir-rc6.c [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
img-ir-sanyo.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir-sharp.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir-sony.c [media] rc: img-ir: add scancode requests to a struct 2014-12-23 15:11:50 -02:00
img-ir.h [media] rc: img-ir: Add and enable sys clock for img-ir 2015-04-08 07:55:48 -03:00
Kconfig [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00
Makefile [media] rc: img-ir: add philips rc6 decoder module 2014-12-23 15:17:31 -02:00