aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDavid Arcari <[email protected]>2021-01-07 09:47:07 -0500
committerGuenter Roeck <[email protected]>2021-01-08 07:31:03 -0800
commit84e261553e6f919bf0b4d65244599ab2b41f1da5 (patch)
treedf772388a2344a53a83a2e58882dbede3823c9ad /tools/perf/scripts/python/exported-sql-viewer.py
parent1eda52334e6d13eb1a85f713ce06dd39342b5020 (diff)
hwmon: (amd_energy) fix allocation of hwmon_channel_info config
hwmon, specifically hwmon_num_channel_attrs, expects the config array in the hwmon_channel_info structure to be terminated by a zero entry. amd_energy does not honor this convention. As result, a KASAN warning is possible. Fix this by adding an additional entry and setting it to zero. Fixes: 8abee9566b7e ("hwmon: Add amd_energy driver to report energy counters") Signed-off-by: David Arcari <[email protected]> Cc: Naveen Krishna Chatradhi <[email protected]> Cc: Jean Delvare <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: David Arcari <[email protected]> Acked-by: Naveen Krishna Chatradhi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions