HID: sensor-hub: make dyn_callback_lock IRQ-safe
authorJiri Kosina <jkosina@suse.cz>
Tue, 10 Jun 2014 09:05:43 +0000 (11:05 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 10 Jun 2014 09:05:43 +0000 (11:05 +0200)
dyn_callback_lock is being taken from IRQ context through hid_irq_in() ->
hid_input_report() -> sensor_hub_raw_event() -> sensor_hub_get_callback(),
therefore anyone else acquiring it needs to disable IRQs to disable deadlocks.

Reported-by: Alexander Holler <holler@ahsoftware.de>
Tested-by: Alexander Holler <holler@ahsoftware.de>
Reported-by: Reyad Attiyat <reyad.attiyat@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found