Patch "hwmon: (aquacomputer_d5next) Fix incorrect PWM value readout" has been added to the 6.4-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 incorrect PWM value readout

to the 6.4-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-incorrect-pwm-value-readout.patch
and it can be found in the queue-6.4 subdirectory.

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


>From a746b3689546da27125da9ccaea62b1dbaaf927c Mon Sep 17 00:00:00 2001
From: Aleksa Savic <savicaleksa83@xxxxxxxxx>
Date: Fri, 14 Jul 2023 14:07:11 +0200
Subject: hwmon: (aquacomputer_d5next) Fix incorrect PWM value readout

From: Aleksa Savic <savicaleksa83@xxxxxxxxx>

commit a746b3689546da27125da9ccaea62b1dbaaf927c upstream.

Commit 662d20b3a5af ("hwmon: (aquacomputer_d5next) Add support for
temperature sensor offsets") changed aqc_get_ctrl_val() to return
the value through a parameter instead of through the return value,
but didn't fix up a case that relied on the old behavior. Fix it
to use the proper received value and not the return code.

Fixes: 662d20b3a5af ("hwmon: (aquacomputer_d5next) Add support for temperature sensor offsets")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Aleksa Savic <savicaleksa83@xxxxxxxxx>
Link: https://lore.kernel.org/r/20230714120712.16721-1-savicaleksa83@xxxxxxxxx
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/hwmon/aquacomputer_d5next.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/hwmon/aquacomputer_d5next.c
+++ b/drivers/hwmon/aquacomputer_d5next.c
@@ -969,7 +969,7 @@ static int aqc_read(struct device *dev,
 			if (ret < 0)
 				return ret;
 
-			*val = aqc_percent_to_pwm(ret);
+			*val = aqc_percent_to_pwm(*val);
 			break;
 		}
 		break;


Patches currently in stable-queue which might be from savicaleksa83@xxxxxxxxx are

queue-6.4/hwmon-aquacomputer_d5next-fix-incorrect-pwm-value-readout.patch



[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