summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-06-01 19:55:15 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-06-01 20:17:49 +0300
commitf8600e0d1ac60e6eac34bc9c7e8cf78f7a4c368f (patch)
tree8d907d535fa51984488e8909987e95b5f8c60a45 /include/linux/stackprotector.h
parente43ffb69e0438cddd72aaa30898b4dc446f664f8 (diff)
downloadlinux-f8600e0d1ac60e6eac34bc9c7e8cf78f7a4c368f.tar.xz
ACPI: button: Fix lid_device value leak past driver removal
Static variable lid_device is set when the ACPI button driver probes the last lid device (under the assumptions that there will be only one lid device in the system) and never cleared, but in principle it should be reset when the driver unbinds from the lid device pointed to by it. Address that and add locking that is needed to clear and set that variable safely. Fixes: 7e12715ecc47 ("ACPI button: provide lid status functions") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/6281379.lOV4Wx5bFT@rafael.j.wysocki
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions