diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-11-30 13:51:17 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2021-12-26 15:02:06 -0800 |
commit | 3315e716999d98d628abebbffaa82bef52962c95 (patch) | |
tree | aacaf38c68c1db1595afcbf7f37aaa0ae3fb77c0 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 34e2bd10ab6005d2967c2f203fea664fd44d0b0f (diff) |
hwmon: (asus_wmi_sensors) fix an array overflow
Smatch detects this array overflow:
drivers/hwmon/asus_wmi_sensors.c:569 asus_wmi_configure_sensor_setup()
error: buffer overflow 'hwmon_attributes' 8 <= 9
The hwmon_attributes[] array should have "hwmon_max" so that it gets
larger when more attributes are added.
Fixes: 9d07e54a25b8 ("hwmon: (asus_wmi_sensors) Support X370 Asus WMI.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211130105117.GH5827@kili
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions