From: Matthijs Kooijman Date: Fri, 2 Nov 2012 12:13:56 +0000 (-0300) Subject: [media] rc: Call rc_register_device before irq setup X-Git-Tag: v3.9-rc1~93^2~469 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa35204dd19eb0e96ee870b7128a8f5da51dbfa;p=pandora-kernel.git [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 Cc: Maxim Levitsky Cc: David Härdeman Signed-off-by: Matthijs Kooijman Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed