summaryrefslogtreecommitdiff
path: root/mm/memblock.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-01-22 19:05:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-14 16:32:22 -0500
commitcf2647f146c41995f03b9b1e3800157aee2cf87d (patch)
treec5c4aaa401aa42878642ccd9e52cfeb62efa41bc /mm/memblock.c
parent18a698a8659dd115c15db8c0ede9319d528ad815 (diff)
downloadlinux-rt-cf2647f146c41995f03b9b1e3800157aee2cf87d.tar.gz
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>
Diffstat (limited to 'mm/memblock.c')
0 files changed, 0 insertions, 0 deletions