Patch "net: pse-pd: pd692x0: Fix power limit retrieval" has been added to the 6.12-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

    net: pse-pd: pd692x0: Fix power limit retrieval

to the 6.12-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:
     net-pse-pd-pd692x0-fix-power-limit-retrieval.patch
and it can be found in the queue-6.12 subdirectory.

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



commit 34fcb0a4ea6260c506f7fac650ca4787e2286bd3
Author: Kory Maincent <kory.maincent@xxxxxxxxxxx>
Date:   Mon Feb 17 14:48:11 2025 +0100

    net: pse-pd: pd692x0: Fix power limit retrieval
    
    [ Upstream commit f6093c5ec74d5cc495f89bd359253d9c738d04d9 ]
    
    Fix incorrect data offset read in the pd692x0_pi_get_pw_limit callback.
    The issue was previously unnoticed as it was only used by the regulator
    API and not thoroughly tested, since the PSE is mainly controlled via
    ethtool.
    
    The function became actively used by ethtool after commit 3e9dbfec4998
    ("net: pse-pd: Split ethtool_get_status into multiple callbacks"),
    which led to the discovery of this issue.
    
    Fix it by using the correct data offset.
    
    Fixes: a87e699c9d33 ("net: pse-pd: pd692x0: Enhance with new current limit and voltage read callbacks")
    Signed-off-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>
    Link: https://patch.msgid.link/20250217134812.1925345-1-kory.maincent@xxxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/pse-pd/pd692x0.c b/drivers/net/pse-pd/pd692x0.c
index 9f00538f7e450..7cfc36cadb576 100644
--- a/drivers/net/pse-pd/pd692x0.c
+++ b/drivers/net/pse-pd/pd692x0.c
@@ -1012,7 +1012,7 @@ static int pd692x0_pi_get_pw_limit(struct pse_controller_dev *pcdev,
 	if (ret < 0)
 		return ret;
 
-	return pd692x0_pi_get_pw_from_table(buf.data[2], buf.data[3]);
+	return pd692x0_pi_get_pw_from_table(buf.data[0], buf.data[1]);
 }
 
 static int pd692x0_pi_set_pw_limit(struct pse_controller_dev *pcdev,




[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