Yonghua Zheng
31ce81ee05
HID: hidraw: Add spinlock in struct hidraw to protect list
...
It is unsafe to call list_for_each_entry in hidraw_report_event to
traverse each hidraw_list node without a lock protection, the list
could be modified if someone calls hidraw_release and list_del to
remove itself from the list, this can cause hidraw_report_event
to touch a deleted list struct and panic.
To prevent this, introduce a spinlock in struct hidraw to protect
list from concurrent access.
Signed-off-by: Yonghua Zheng <younghua.zheng@gmail.com >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
2014-03-14 18:21:18 +08:00
..
2013-04-04 09:59:32 +02:00
2013-12-11 22:36:28 -08:00
2013-01-03 10:27:31 +01:00
2013-12-04 10:57:34 -08:00
2013-04-18 19:06:20 -07:00
2013-01-03 10:27:31 +01:00
2013-12-04 10:57:34 -08:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-12-04 10:57:34 -08:00
2013-01-03 10:27:31 +01:00
2013-05-06 13:07:33 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-25 11:17:31 -08:00
2013-04-24 16:32:27 +02:00
2013-12-11 22:36:28 -08:00
2013-10-04 00:30:46 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-10-01 09:17:46 -07:00
2013-12-04 10:57:19 -08:00
2013-10-01 09:17:46 -07:00
2013-12-04 10:57:20 -08:00
2013-12-08 07:29:27 -08:00
2012-09-25 15:41:02 +02:00
2013-10-01 09:17:46 -07:00
2014-01-15 15:28:45 -08:00
2014-01-15 15:28:45 -08:00
2013-04-30 10:12:44 +02:00
2013-04-29 10:16:55 +02:00
2013-01-03 10:27:31 +01:00
2013-12-05 10:16:50 +00:00
2013-09-26 17:18:16 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-09-26 17:18:16 -07:00
2013-09-26 17:18:16 -07:00
2013-10-13 16:08:28 -07:00
2013-09-26 17:18:16 -07:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:19:07 +02:00
2013-09-26 17:18:15 -07:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2012-06-28 10:34:01 +02:00
2011-06-13 12:52:57 +02:00
2013-12-04 10:57:34 -08:00
2012-06-28 10:34:01 +02:00
2013-03-14 11:50:49 +01:00
2013-03-14 11:50:49 +01:00
2013-04-08 10:33:13 +02:00
2013-04-08 10:33:13 +02:00
2012-11-12 15:30:28 +01:00
2012-11-18 22:58:28 +01:00
2013-10-13 16:08:35 -07:00
2013-03-14 11:50:49 +01:00
2013-12-04 10:57:34 -08:00
2012-11-12 15:30:29 +01:00
2013-01-03 10:27:31 +01:00
2012-10-17 10:44:47 +02:00
2012-11-12 15:30:28 +01:00
2012-11-12 15:30:28 +01:00
2012-11-05 13:17:39 +01:00
2012-07-20 09:50:42 +02:00
2013-03-14 11:50:49 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-12-04 10:57:19 -08:00
2013-02-25 13:26:41 +01:00
2013-02-21 10:45:52 +01:00
2013-09-26 17:18:16 -07:00
2013-10-01 09:17:46 -07:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:40 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-04-04 09:38:43 +02:00
2013-01-18 10:59:24 +01:00
2013-02-18 10:41:52 +01:00
2011-11-22 23:11:10 +01:00
2013-10-01 09:17:46 -07:00
2013-01-03 10:27:31 +01:00
2014-03-14 18:21:18 +08:00
2013-12-04 10:57:20 -08:00
2013-04-30 10:19:07 +02:00
2013-12-04 10:57:15 -08:00