Home
last modified time | relevance | path

Searched hist:"0 ccf091d1fbc1f99bb7f93bff8cf346769a9b0cd" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/hid/
H A Dhid-sensor-hub.cdiff ed1197709504c3641cbad32843667539cc912ea1 Wed Jan 07 19:14:44 CET 2015 Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> HID: sensor-hub: correct dyn_callback_lock IRQ-safe change

Commit 0ccf091d1fbc1f99bb7f93bff8cf346769a9b0cd ("HID: sensor-hub:
make dyn_callback_lock IRQ-safe) was supposed to change locks
in sensor_hub_get_callback(), but missed.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
diff 0ccf091d1fbc1f99bb7f93bff8cf346769a9b0cd Tue Jun 10 11:05:43 CEST 2014 Jiri Kosina <jkosina@suse.cz> 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 <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>