summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2012-11-02 09:13:56 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 18:26:11 -0200
commit9fa35204dd19eb0e96ee870b7128a8f5da51dbfa (patch)
tree5496a8441112847b57a97324c39e907d77cff5c4 /init
parentd62b6818477704683d00c680335eff5833bd3906 (diff)
downloadlinux-3.10-9fa35204dd19eb0e96ee870b7128a8f5da51dbfa.tar.gz
linux-3.10-9fa35204dd19eb0e96ee870b7128a8f5da51dbfa.tar.bz2
linux-3.10-9fa35204dd19eb0e96ee870b7128a8f5da51dbfa.zip
[media] rc: Call rc_register_device before irq setup
This should fix a potential race condition, when the irq handler triggers while rc_register_device is still setting up the rdev->raw device. This crash has not been observed in practice, but there should be a very small window where it could occur. Since ir_raw_event_store_with_filter checks if rdev->raw is not NULL before using it, this bug is not triggered if the request_irq triggers a pending irq directly (since rdev->raw will still be NULL then). This commit was tested on nuvoton-cir only. Cc: Jarod Wilson <jarod@redhat.com> Cc: Maxim Levitsky <maximlevitsky@gmail.com> Cc: David Härdeman <david@hardeman.nu> Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions