]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf hwmon_pmu: Ensure hwmon key union is zeroed before use
authorIan Rogers <irogers@google.com>
Tue, 19 Nov 2024 23:00:33 +0000 (15:00 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 22 Nov 2024 21:38:39 +0000 (13:38 -0800)
commit62878b400f5b02416368eda361277c045c675466
treeb22648fd463030776e8d283bc1d8ab842dbea357
parent870748fa1fac5a397c26126bc32662e9249762c7
perf hwmon_pmu: Ensure hwmon key union is zeroed before use

Non-zero values led to mismatches in testing. This was reproducible
with -fsanitize=undefined.

Reported-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Closes: https://lore.kernel.org/lkml/Zzdtj0PEWEX3ATwL@x1/
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20241119230033.115369-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/hwmon_pmu.c