Yonghua Zheng
277fe44dd8
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>
2013-08-26 21:40:24 +02:00
..
2013-08-05 11:19:38 +02:00
2013-07-22 16:16:40 +02:00
2013-01-03 10:27:31 +01:00
2013-04-30 10:12:44 +02:00
2013-04-18 19:06:20 -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
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-07-29 11:49:29 +02: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-05-29 01:11:43 +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-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-05-29 15:04:33 +02:00
2013-08-05 11:29:57 +02:00
2013-05-28 14:29:38 +02:00
2013-06-03 13:32:22 +02:00
2013-04-24 16:32:27 +02:00
2013-07-29 11:49:29 +02:00
2013-07-04 15:02:26 +02:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-07-15 10:25:33 +02:00
2013-01-03 10:27:31 +01:00
2013-04-30 10:19:07 +02:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:12:44 +02:00
2013-02-21 10:45:01 +01:00
2012-09-25 15:41:02 +02:00
2013-02-25 13:26:41 +01:00
2013-08-01 00:45:52 +02:00
2013-03-01 14:14:59 +01:00
2013-07-23 16:05:46 +02:00
2013-04-29 10:16:55 +02:00
2013-01-03 10:27:31 +01:00
2013-07-04 15:02:26 +02:00
2013-07-23 16:05:46 +02: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-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-07-22 16:16:40 +02:00
2013-02-25 13:26:41 +01: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-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-07-23 16:05:46 +02:00
2011-06-13 12:52:57 +02:00
2012-06-28 10:34:01 +02:00
2012-06-28 10:34:01 +02:00
2013-07-23 16:05:46 +02:00
2013-03-14 11:50:49 +01:00
2013-07-23 16:05:46 +02:00
2013-04-08 10:33:13 +02:00
2013-07-23 16:05:46 +02:00
2012-11-18 22:58:28 +01:00
2013-03-14 11:50:49 +01:00
2013-03-14 11:50:49 +01:00
2013-07-23 16:05:46 +02: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-06-18 11:00:36 +02:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-08-26 13:46:11 +02:00
2013-02-25 13:26:41 +01:00
2013-06-13 12:03:49 +02:00
2013-08-26 13:51:10 +02:00
2013-05-03 10:26:52 +02: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-07-04 15:04:47 +02:00
2013-01-03 10:27:31 +01:00
2013-06-27 11:57:49 +02:00
2013-06-03 11:07:06 +02:00
2013-06-27 11:57:49 +02:00
2013-06-27 11:57:49 +02:00
2013-08-26 13:23:04 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-08-26 21:40:24 +02:00
2013-07-29 11:49:29 +02:00
2013-07-29 11:49:29 +02:00
2013-02-18 11:28:16 +01:00