linux/drivers/media/rc
Matthijs Kooijman d62b681847 [media] rc: Set rdev before irq setup
This fixes a problem in fintek-cir and nuvoton-cir where the
irq handler would trigger during module load before the rdev member was
set, causing a NULL pointer crash.
It seems this crash is very reproducible (just bombard the receiver with
IR signals during module load), probably because when request_irq is
called, any pending intterupt is handled immediately, before
request_irq returns and rdev can be set.
This same crash was supposed to be fixed by commit
9ef449c6b3 ("[media] rc: Postpone ISR
registration"), but the crash was still observed on the nuvoton-cir
driver.
This commit was tested on nuvoton-cir only.

Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-21 18:26:10 -02:00
..
keymaps [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ati_remote.c [media] rc: Make probe cleanup goto labels more verbose 2012-12-21 18:26:08 -02:00
ene_ir.c [media] rc: Make probe cleanup goto labels more verbose 2012-12-21 18:26:08 -02:00
ene_ir.h treewide: Fix comment and string typo 'bufer' 2011-12-06 09:53:40 +01:00
fintek-cir.c [media] rc: Set rdev before irq setup 2012-12-21 18:26:10 -02:00
fintek-cir.h [media] fintek-cir: add support for newer chip version 2012-02-14 16:53:53 -02:00
gpio-ir-recv.c [media] rc: Fix double free in gpio_ir_recv_remove() 2012-12-21 16:28:58 -02:00
iguanair.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
imon.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-jvc-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-lirc-codec.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-mce_kbd-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-nec-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-raw.c [media] rc: do not wake up rc thread unless there is something to do 2012-08-13 16:19:12 -03:00
ir-rc5-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-rc5-sz-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-rc6-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-rx51.c [media] media/ir_rx51: use module_platform_driver macro 2012-10-27 11:36:29 -02:00
ir-sanyo-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ir-sony-decoder.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ite-cir.c [media] rc: Make probe cleanup goto labels more verbose 2012-12-21 18:26:08 -02:00
ite-cir.h
Kconfig [media] ir-rx51: Adjust dependencies 2012-09-15 19:44:30 -03:00
lirc_dev.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
Makefile [media] media: rc: Introduce RX51 IR transmitter driver 2012-08-13 16:53:45 -03:00
mceusb.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
nuvoton-cir.c [media] rc: Set rdev before irq setup 2012-12-21 18:26:10 -02:00
nuvoton-cir.h [media] nuvoton-cir: carrier detect support is broken - remove it 2012-10-27 18:10:07 -02:00
rc-core-priv.h [media] rc/ir-raw: use kfifo_rec_ptr_1 instead of kfifo 2012-03-08 10:39:53 -03:00
rc-loopback.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
rc-main.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
redrat3.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
streamzap.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
ttusbir.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
winbond-cir.c [media] winbond-cir: add carrier detection 2012-11-21 17:06:17 -02:00