Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45a5b3a1 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (nct6775) Check array index when accessing temp_offset



smatch complains about a potential out-of-bounds access to the
temp_offset array. That doesn't happen in practice, but it doesn't
hurt to add an explicit check either. This prevents potential problems
in the future (for example if the number of 'fixed' temperature
sensors is increased to add support for another chip).

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent e8ab508c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment