summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2026-02-18 01:50:59 +0100
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-02-23 18:06:41 +0200
commit67e7eb4c130a74c5da9ab43316e00ed3186d1811 (patch)
treea8365d52caa87aa9baddb291d019a50ff183cdc3 /tools/perf/scripts/python/task-analyzer.py
parent2d53dfacf067968a9ff90c03700fb9b28049f4c6 (diff)
downloadlinux-67e7eb4c130a74c5da9ab43316e00ed3186d1811.tar.gz
linux-67e7eb4c130a74c5da9ab43316e00ed3186d1811.zip
platform/x86: uniwill-laptop: Fix crash on unexpected battery event
On devices that have not UNIWILL_FEATURE_BATTERY set, the underlying hardware might still send the UNIWILL_OSD_BATTERY_ALERT event. In such a situation, the driver will access uninitialized data structures when handling said event. Prevent this by only handling the UNIWILL_OSD_BATTERY_ALERT event when UNIWILL_FEATURE_BATTERY is set. Fixes: d050479693bb ("platform/x86: Add Uniwill laptop driver") Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20260218005101.73680-3-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions