linux/drivers/media/rc
Sifan Naeem c85efde20c [media] rc: img-ir: fix error in parameters passed to irq_free()
commit 80ccf4ad06 upstream.

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>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-05-05 11:09:53 +01:00
..
img-ir [media] rc: img-ir: fix error in parameters passed to irq_free() 2015-05-05 11:09:53 +01:00
keymaps [media] rc-core: do not change 32bit NEC scancode format for now 2014-04-06 11:26:04 -03:00
ati_remote.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ene_ir.h [media] ene_ir: don't use pr_debug after all 2013-07-29 11:49:45 -03:00
fintek-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
fintek-cir.h [media] rc: Fir warnings on m68k arch 2013-11-08 09:45:37 -02:00
gpio-ir-recv.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
iguanair.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
imon.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-jvc-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-lirc-codec.c [media] media/rc: Send sync space information on the lirc device 2015-02-16 10:58:10 +00:00
ir-mce_kbd-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-nec-decoder.c [media] rc-core: do not change 32bit NEC scancode format for now 2014-04-06 11:26:04 -03:00
ir-raw.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc5-sz-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rc6-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-rx51.c [media] ir-rx51: remove deprecated IRQF_DISABLED 2013-10-17 06:09:02 -03:00
ir-sanyo-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sharp-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ir-sony-decoder.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
ite-cir.h [media] ite-cir: 8709 needs to use pnp resource 2 2011-07-01 16:31:38 -03:00
Kconfig [media] rc: img-ir: add to build 2014-03-11 15:43:04 -03:00
lirc_dev.c [media] media: lirc: Allow lirc dev to talk to rc device 2013-07-31 16:30:27 -03:00
Makefile [media] rc: img-ir: add to build 2014-03-11 15:43:04 -03:00
mceusb.c [media] fix mceusb endpoint type identification/handling 2014-05-25 15:49:35 -03:00
nuvoton-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
nuvoton-cir.h [media] nuvoton-cir: Don't touch PS/2 interrupts while initializing 2014-02-04 17:47:26 -02:00
rc-core-priv.h [media, edac] Change my email address 2014-02-07 08:03:07 -02:00
rc-loopback.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
rc-main.c [media] rc-core: remove generic scancode filter 2014-04-06 11:30:29 -03:00
redrat3.c USB: media: redrat3: remove CONFIG_USB_DEBUG usage 2014-05-29 11:22:46 -07:00
st_rc.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
streamzap.c USB: media: streamzap: remove CONFIG_USB_DEBUG 2014-05-29 11:22:47 -07:00
ttusbir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
winbond-cir.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00