Dmitry Torokhov
e9728f0dd7
Input: pwm-beeper - fix race when suspending
...
Usually userspace sends SND_BELL and SND_TONE events, and by the time
pwm_beeper_suspend() runs userpsace is already frozen, but theoretically
in-kernel users may send these events too, and that may cause
pwm_beeper_event() scheduling another work after we canceled it.
Let's introduce a "suspended" flag and check it in pwm_beeper_event() to
avoid this race.
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Tested-by: David Lechner <david@lechnology.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2017-01-22 00:23:19 -08:00
..
2017-01-21 23:53:21 -08:00
2014-12-17 10:06:02 -08:00
2017-01-18 11:49:19 -08:00
2015-09-19 11:42:39 -07:00
2015-11-06 11:57:41 -08:00
2015-09-19 11:42:39 -07:00
2015-09-19 11:42:39 -07:00
2015-07-17 16:57:00 -07:00
2015-10-28 10:30:17 +09:00
2014-01-06 23:23:57 -08:00
2010-07-03 13:13:21 -07:00
2016-06-23 10:44:01 -07:00
2017-01-21 23:51:51 -08:00
2016-03-23 17:29:29 -07:00
2014-01-24 17:17:30 -08:00
2017-01-21 23:51:51 -08:00
2015-08-03 14:11:46 -07:00
2017-01-18 11:49:11 -08:00
2016-12-27 13:36:50 -08:00
2016-05-04 16:01:42 -07:00
2015-07-17 16:57:00 -07:00
2013-12-06 02:06:29 -08:00
2010-11-30 23:05:21 -08:00
2014-10-20 16:20:40 +02:00
2014-10-20 16:20:40 +02:00
2014-10-20 16:20:40 +02:00
2017-01-21 23:51:51 -08:00
2014-10-20 16:20:40 +02:00
2017-01-21 23:51:56 -08:00
2016-11-30 09:03:44 -08:00
2016-11-30 09:03:45 -08:00
2017-01-21 23:53:34 -08:00
2017-01-21 23:53:21 -08:00
2017-01-18 11:49:13 -08:00
2017-01-21 23:51:56 -08:00
2015-06-16 17:09:14 -07:00
2017-01-21 23:53:34 -08:00
2015-10-22 23:31:28 -07:00
2014-10-20 16:20:40 +02:00
2016-03-17 14:16:57 -07:00
2014-10-20 16:20:40 +02:00
2016-10-26 16:01:16 -07:00
2014-07-18 10:53:27 -07:00
2015-10-02 11:44:17 -07:00
2014-10-20 16:20:40 +02:00
2016-08-29 20:24:23 -07:00
2014-12-17 10:06:02 -08:00
2016-05-25 10:40:15 -07:00
2016-10-13 17:25:40 -07:00
2014-10-20 16:20:40 +02:00
2017-01-18 11:49:14 -08:00
2015-07-17 16:57:00 -07:00
2015-03-19 12:16:18 -07:00
2014-10-20 16:20:40 +02:00
2015-07-17 16:57:00 -07:00
2014-01-06 23:23:57 -08:00
2014-10-20 16:20:40 +02:00
2014-12-17 10:06:02 -08:00
2017-01-21 23:53:21 -08:00
2017-01-21 23:53:34 -08:00
2016-03-14 09:36:49 -07:00
2017-01-22 00:23:19 -08:00
2015-09-03 12:08:02 +02:00
2016-06-23 10:43:57 -07:00
2017-01-21 23:53:34 -08:00
2016-07-27 18:26:10 -07:00
2014-10-20 16:20:40 +02:00
2017-01-21 23:53:34 -08:00
2017-01-21 11:46:52 -08:00
2015-12-02 10:02:50 -08:00
2017-01-18 11:49:17 -08:00
2017-01-21 23:51:51 -08:00
2016-04-20 14:39:46 -07:00
2016-05-16 17:25:08 -07:00
2016-06-18 17:25:08 -07:00
2014-10-20 16:20:40 +02:00
2015-05-15 15:58:42 -07:00
2016-07-13 17:27:24 -07:00
2014-01-06 23:23:57 -08:00
2010-02-09 11:13:56 +01:00