]> Git Repo - linux.git/commit
net: phy: realtek: Check the index value in led_hw_control_get
authorHui Wang <[email protected]>
Fri, 27 Sep 2024 11:46:10 +0000 (19:46 +0800)
committerJakub Kicinski <[email protected]>
Thu, 3 Oct 2024 00:24:56 +0000 (17:24 -0700)
commitc283782fc5d60c4d8169137c6f955aa3553d3b3d
treee36fb8e1ca94ad05205029460c6e420a3ec7cfa4
parentaec7291003df78cb71fd461d7b672912bde55807
net: phy: realtek: Check the index value in led_hw_control_get

Just like rtl8211f_led_hw_is_supported() and
rtl8211f_led_hw_control_set(), the rtl8211f_led_hw_control_get() also
needs to check the index value, otherwise the caller is likely to get
an incorrect rules.

Fixes: 17784801d888 ("net: phy: realtek: Add support for PHY LEDs on RTL8211F")
Signed-off-by: Hui Wang <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/phy/realtek.c
This page took 0.055638 seconds and 4 git commands to generate.