summaryrefslogtreecommitdiff
path: root/net/iucv
diff options
context:
space:
mode:
authorCristian Marussi <cristian.marussi@arm.com>2020-07-15 15:13:38 +0300
committerGuenter Roeck <linux@roeck-us.net>2020-07-15 17:08:21 +0300
commit3ce17cd2b94907f6d91b81b32848044b84c97606 (patch)
treeb1675d892be202559a65314c4cc4d8edcd52cf3b /net/iucv
parent8a03746c8baf82e1616f05a1a716d34378dcf780 (diff)
downloadlinux-3ce17cd2b94907f6d91b81b32848044b84c97606.tar.xz
hwmon: (scmi) Fix potential buffer overflow in scmi_hwmon_probe()
SMATCH detected a potential buffer overflow in the manipulation of hwmon_attributes array inside the scmi_hwmon_probe function: drivers/hwmon/scmi-hwmon.c:226 scmi_hwmon_probe() error: buffer overflow 'hwmon_attributes' 6 <= 9 Fix it by statically declaring the size of the array as the maximum possible as defined by hwmon_max define. Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://lore.kernel.org/r/20200715121338.GA18761@e119603-lin.cambridge.arm.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'net/iucv')
0 files changed, 0 insertions, 0 deletions