mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
hwmon: (aquacomputer_d5next) Fix length of speed_input array
Commit120584c728
("hwmon: (aquacomputer_d5next) Add support for Octo flow sensor") added support for reading Octo flow sensor, but didn't update the priv->speed_input array length. Since Octo has 8 fans, with the addition of the flow sensor the proper length for speed_input is 9. Reported by Arne Schwabe on Github [1], who received a UBSAN warning. Fixes:120584c728
("hwmon: (aquacomputer_d5next) Add support for Octo flow sensor") Closes: https://github.com/aleksamagicka/aquacomputer_d5next-hwmon/issues/100 [1] Reported-by: Arne Schwabe <arne@rfc2549.org> Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com> Message-ID: <20241124152725.7205-1-savicaleksa83@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
de2bf507fa
commit
998b5a78a9
@ -597,7 +597,7 @@ struct aqc_data {
|
||||
|
||||
/* Sensor values */
|
||||
s32 temp_input[20]; /* Max 4 physical and 16 virtual or 8 physical and 12 virtual */
|
||||
s32 speed_input[8];
|
||||
s32 speed_input[9];
|
||||
u32 speed_input_min[1];
|
||||
u32 speed_input_target[1];
|
||||
u32 speed_input_max[1];
|
||||
|
Loading…
Reference in New Issue
Block a user