diff options
| author | 2020-01-22 19:05:20 +0300 | |
|---|---|---|
| committer | 2020-01-22 18:51:58 +0200 | |
| commit | 5e0c94d3aeeecc68c573033f08d9678fecf253bd (patch) | |
| tree | 311568407747e1e384e6a873e993b2ff1a80c2c9 /include/soc/git:/ssh: | |
| parent | platform/x86: asus-nb-wmi: Support left round button on N56VB (diff) | |
| download | linux-dev-5e0c94d3aeeecc68c573033f08d9678fecf253bd.tar.xz linux-dev-5e0c94d3aeeecc68c573033f08d9678fecf253bd.zip | |
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: 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>
Diffstat (limited to 'include/soc/git:/ssh:')
0 files changed, 0 insertions, 0 deletions
