linux_dsm_epyc7002/drivers/platform/x86
Mika Westerberg 5e0c94d3ae platform/x86: intel_mid_powerbtn: Take a copy of ddata
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>
2020-01-22 18:51:58 +02:00
..
intel_speed_select_if platform/x86: ISST: Allow additional core-power mailbox commands 2020-01-20 11:39:31 +02:00
acer-wireless.c
acer-wmi.c
acerhdf.c treewide: Rename Peter Feuerer to Peter Kaestle 2019-10-21 12:17:23 +03:00
alienware-wmi.c
amilo-rfkill.c
apple-gmux.c
asus-laptop.c platform-drivers-x86 for v5.5-1 2019-12-01 18:24:25 -08:00
asus-nb-wmi.c platform/x86: asus-nb-wmi: Support left round button on N56VB 2020-01-20 11:39:39 +02:00
asus-wireless.c
asus-wmi.c platform/x86: asus-wmi: Fix keyboard brightness cannot be set to 0 2020-01-13 11:51:27 +02:00
asus-wmi.h
classmate-laptop.c platform/x86: classmate-laptop: remove unused variable 2019-10-15 10:55:10 +03:00
compal-laptop.c
dcdbas.c
dcdbas.h
dell_rbu.c docs: admin-guide: Move Dell RBU document from driver-api 2019-10-15 12:35:39 -06:00
dell-laptop.c platform/x86: dell-laptop: disable kbd backlight on Inspiron 10xx 2019-10-15 10:55:09 +03:00
dell-rbtn.c
dell-rbtn.h
dell-smbios-base.c
dell-smbios-smm.c
dell-smbios-wmi.c
dell-smbios.h
dell-smo8800.c
dell-wmi-aio.c
dell-wmi-descriptor.c
dell-wmi-descriptor.h
dell-wmi-led.c
dell-wmi.c
eeepc-laptop.c platform/x86: eeepc-laptop: Use pr_warn instead of pr_warning 2019-10-18 15:00:48 +02:00
eeepc-wmi.c
fujitsu-laptop.c
fujitsu-tablet.c
gpd-pocket-fan.c platform/x86: GPD pocket fan: Allow somewhat lower/higher temperature limits 2020-01-10 11:57:22 +02:00
hdaps.c platform/x86: hdaps: switch to using polled mode of input devices 2019-10-15 10:55:09 +03:00
hp_accel.c
hp-wireless.c
hp-wmi.c platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes 2019-12-20 19:00:50 +02:00
huawei-wmi.c platform/x86: huawei-wmi: Remove unnecessary battery mutex 2019-10-21 12:17:30 +03:00
i2c-multi-instantiate.c platform/x86: i2c-multi-instantiate: Fail the probe if no IRQ provided 2019-10-15 10:55:10 +03:00
ibm_rtl.c
ideapad-laptop.c
intel_atomisp2_pm.c platform/x86: intel_atomisp2_pm: Spelling fixes 2020-01-10 11:57:22 +02:00
intel_bxtwc_tmu.c
intel_cht_int33fe_common.c platform/x86: intel_cht_int33fe: Split code to Micro-B and Type-C 2019-10-15 10:55:10 +03:00
intel_cht_int33fe_common.h platform/x86: intel_cht_int33fe: Split code to Micro-B and Type-C 2019-10-15 10:55:10 +03:00
intel_cht_int33fe_microb.c platform/x86: intel_cht_int33fe: Split code to Micro-B and Type-C 2019-10-15 10:55:10 +03:00
intel_cht_int33fe_typec.c platform/x86: intel_cht_int33fe: Split code to Micro-B and Type-C 2019-10-15 10:55:10 +03:00
intel_chtdc_ti_pwrbtn.c
intel_int0002_vgpio.c platform/x86: intel_int0002_vgpio: Pass irqchip when adding gpiochip 2019-10-27 02:10:58 +03:00
intel_ips.c
intel_ips.h platform/x86: intel-ips: Use the correct style for SPDX License Identifier 2020-01-10 11:57:21 +02:00
intel_menlow.c
intel_mid_powerbtn.c platform/x86: intel_mid_powerbtn: Take a copy of ddata 2020-01-22 18:51:58 +02:00
intel_mid_thermal.c
intel_mrfld_pwrbtn.c
intel_oaktrail.c platform/x86: intel_oaktrail: Use pr_warn instead of pr_warning 2019-10-18 15:01:35 +02:00
intel_pmc_core_pltdrv.c platform/x86: intel_pmc_core: update Comet Lake platform driver 2020-01-10 11:57:22 +02:00
intel_pmc_core.c platform/x86: intel_pmc_core: Fix spelling of MHz unit 2020-01-10 11:50:32 +02:00
intel_pmc_core.h platform/x86: intel-ips: Use the correct style for SPDX License Identifier 2020-01-10 11:57:21 +02:00
intel_pmc_ipc.c
intel_punit_ipc.c platform/x86: intel_punit_ipc: Drop useless label 2019-10-27 02:10:57 +03:00
intel_scu_ipc.c
intel_scu_ipcutil.c
intel_telemetry_core.c
intel_telemetry_debugfs.c platform/x86: intel_telemetry_debugfs: Respect error code of kstrtou32_from_user() 2020-01-10 11:50:32 +02:00
intel_telemetry_pltdrv.c platform/x86: intel_telemetry_pltdrv: use devm_platform_ioremap_resource() 2020-01-10 11:50:32 +02:00
intel_turbo_max_3.c
intel-hid.c
intel-rst.c
intel-smartconnect.c
intel-uncore-frequency.c platform/x86: Add support for Uncore frequency control 2020-01-13 21:02:36 +02:00
intel-vbtn.c
intel-wmi-thunderbolt.c
Kconfig platform/x86: Add support for Uncore frequency control 2020-01-13 21:02:36 +02:00
lg-laptop.c
Makefile platform/x86: Add support for Uncore frequency control 2020-01-13 21:02:36 +02:00
mlx-platform.c platform/x86: mlx-platform: Add support for next generation systems 2020-01-13 21:02:46 +02:00
msi-laptop.c
msi-wmi.c
mxm-wmi.c
panasonic-laptop.c
pcengines-apuv2.c platform/x86: pcengines-apuv2: Spelling fixes in the driver 2019-12-20 19:01:59 +02:00
peaq-wmi.c platform/x86: peaq-wmi: switch to using polled mode of input devices 2019-10-15 10:55:09 +03:00
pmc_atom.c platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table 2019-12-20 19:00:50 +02:00
samsung-laptop.c
samsung-q10.c
sony-laptop.c
surface3_button.c
surface3-wmi.c
surfacepro3_button.c
system76_acpi.c platform/x86: Add System76 ACPI driver 2019-10-15 10:55:11 +03:00
tc1100-wmi.c
thinkpad_acpi.c
topstar-laptop.c
toshiba_acpi.c
toshiba_bluetooth.c
toshiba_haps.c
toshiba-wmi.c
touchscreen_dmi.c platform/x86: touchscreen_dmi: Fix indentation in several places 2020-01-10 11:57:22 +02:00
wmi-bmof.c
wmi.c compat_ioctl: move more drivers to compat_ptr_ioctl 2019-10-23 17:23:44 +02:00
xiaomi-wmi.c
xo1-rfkill.c
xo15-ebook.c