linux-stable/drivers/platform
Mika Westerberg cf2647f146 platform/x86: intel_mid_powerbtn: Take a copy of ddata
commit 5e0c94d3ae 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: c94a8ff14d ("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
..
chrome platform/chrome: cros_ec_proto: check for NULL transfer function 2019-06-15 11:54:55 +02:00
goldfish Merge 4.12-rc5 into char-misc-next 2017-06-12 08:18:10 +02:00
mips MIPS: Loongson: Fix return value of loongson_hwmon_init 2020-01-27 14:46:51 +01:00
olpc
x86 platform/x86: intel_mid_powerbtn: Take a copy of ddata 2020-02-14 16:32:22 -05:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00