Skip to content
Commit 815f80ad authored by Tasos Sahanidis's avatar Tasos Sahanidis Committed by Guenter Roeck
Browse files

hwmon: (nct6775-core) Fix out of bounds access for NCT679{8,9}



pwm_num is set to 7 for these chips, but NCT6776_REG_PWM_MODE and
NCT6776_PWM_MODE_MASK only contain 6 values.

Fix this by adding another 0 to the end of each array.

Signed-off-by: default avatarTasos Sahanidis <tasos@tasossah.com>
Link: https://lore.kernel.org/r/20250312030832.106475-1-tasos@tasossah.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 53df59dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment