From: Jiri Kosina Date: Tue, 10 Jun 2014 09:05:43 +0000 (+0200) Subject: HID: sensor-hub: make dyn_callback_lock IRQ-safe X-Git-Tag: cleanup-for-v3.18~287^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ccf091d1fbc1f99bb7f93bff8cf346769a9b0cd;p=pandora-kernel.git HID: sensor-hub: make dyn_callback_lock IRQ-safe 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 Tested-by: Alexander Holler Reported-by: Reyad Attiyat Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed