Patch "hwmon: (aquacomputer_d5next) Fix length of speed_input array" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    hwmon: (aquacomputer_d5next) Fix length of speed_input array

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     hwmon-aquacomputer_d5next-fix-length-of-speed_input-.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7aac17b4e948205c149402895a0999c41cfcd8b3
Author: Aleksa Savic <savicaleksa83@xxxxxxxxx>
Date:   Sun Nov 24 16:27:24 2024 +0100

    hwmon: (aquacomputer_d5next) Fix length of speed_input array
    
    [ Upstream commit 998b5a78a9ce1cc4378e7281e4ea310e37596170 ]
    
    Commit 120584c728a6 ("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: 120584c728a6 ("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@xxxxxxxxxxx>
    Signed-off-by: Aleksa Savic <savicaleksa83@xxxxxxxxx>
    Message-ID: <20241124152725.7205-1-savicaleksa83@xxxxxxxxx>
    Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hwmon/aquacomputer_d5next.c b/drivers/hwmon/aquacomputer_d5next.c
index 8e55cd2f46f53..a72315a08f161 100644
--- a/drivers/hwmon/aquacomputer_d5next.c
+++ b/drivers/hwmon/aquacomputer_d5next.c
@@ -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];




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux