Mika Westerberg
cf2647f146
platform/x86: intel_mid_powerbtn: Take a copy of ddata
...
commit 5e0c94d3aeeecc68c573033f08d9678fecf253bd upstream.
The driver gets driver_data from memory that is marked as const (which
is probably put to read-only memory) and it then modifies it. This
likely causes some sort of fault to happen.
Fix this by taking a copy of the structure.
Fixes: c94a8ff14de3 ("platform/x86: intel_mid_powerbtn: make mid_pb_ddata const")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-14 16:32:22 -05:00
..
2020-02-14 16:32:09 -05:00
2019-12-17 20:38:57 +01:00
2020-01-27 14:46:44 +01:00
2020-02-05 14:18:08 +00:00
2020-02-14 16:32:13 -05:00
2020-01-27 14:46:45 +01:00
2020-01-27 14:46:43 +01:00
2020-01-09 10:17:57 +01:00
2020-01-04 13:59:52 +01:00
2020-02-05 14:18:15 +00:00
2020-02-14 16:32:16 -05:00
2020-01-27 14:46:21 +01:00
2020-01-27 14:46:37 +01:00
2019-12-17 20:39:33 +01:00
2020-02-14 16:32:14 -05:00
2020-02-05 14:18:12 +00:00
2020-01-27 14:46:52 +01:00
2019-12-21 10:47:50 +01:00
2020-01-27 14:46:34 +01:00
2019-12-31 12:37:06 +01:00
2020-01-09 10:17:59 +01:00
2020-01-12 12:11:51 +01:00
2019-12-31 12:37:35 +01:00
2020-02-05 14:18:07 +00:00
2020-02-14 16:32:19 -05:00
2020-02-05 14:18:05 +00:00
2020-02-14 16:32:12 -05:00
2020-01-29 15:02:38 +01:00
2020-01-29 15:02:39 +01:00
2019-12-17 20:38:15 +01:00
2020-01-27 14:46:45 +01:00
2020-02-14 16:32:21 -05:00
2020-01-29 15:02:38 +01:00
2020-01-27 14:46:47 +01:00
2020-01-04 13:59:42 +01:00
2019-12-17 20:39:06 +01:00
2020-01-27 14:46:32 +01:00
2019-12-01 09:13:39 +01:00
2019-12-05 15:38:31 +01:00
2020-02-14 16:32:13 -05:00
2020-02-14 16:32:08 -05:00
2020-01-23 08:20:31 +01:00
2020-02-14 16:32:18 -05:00
2020-01-27 14:46:40 +01:00
2020-02-14 16:32:11 -05:00
2020-02-14 16:32:18 -05:00
2020-02-14 16:32:18 -05:00
2020-02-14 16:32:17 -05:00
2020-01-27 14:46:05 +01:00
2020-01-04 13:59:46 +01:00
2020-01-27 14:46:48 +01:00
2020-01-27 14:46:39 +01:00
2020-02-14 16:32:13 -05:00
2019-12-31 12:37:39 +01:00
2020-02-14 16:32:21 -05:00
2020-02-14 16:32:17 -05:00
2020-01-27 14:46:47 +01:00
2020-02-14 16:32:22 -05:00
2020-02-14 16:32:12 -05:00
2020-01-23 08:20:35 +01:00
2020-01-27 14:46:34 +01:00
2020-01-27 14:46:25 +01:00
2020-01-27 14:46:26 +01:00
2019-11-24 08:23:15 +01:00
2019-12-05 15:36:49 +01:00
2019-12-21 10:47:47 +01:00
2020-02-14 16:32:22 -05:00
2020-01-12 12:12:00 +01:00
2020-02-14 16:32:21 -05:00
2020-02-05 14:18:18 +00:00
2020-02-05 14:18:06 +00:00
2020-02-05 14:18:02 +00:00
2020-01-29 15:02:38 +01:00
2020-02-05 14:18:24 +00:00
2020-01-27 14:46:34 +01:00
2020-02-14 16:32:22 -05:00
2020-01-27 14:46:15 +01:00
2020-02-14 16:32:08 -05:00
2020-01-27 14:46:33 +01:00
2020-01-04 14:00:14 +01:00
2020-01-27 14:46:34 +01:00
2019-12-17 20:39:14 +01:00
2019-12-01 09:13:24 +01:00
2020-02-05 14:18:06 +00:00
2020-02-14 16:32:15 -05:00