summaryrefslogtreecommitdiff
path: root/security/tomoyo
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2024-09-27 19:46:10 +0800
committerJakub Kicinski <kuba@kernel.org>2024-10-02 17:24:56 -0700
commitc283782fc5d60c4d8169137c6f955aa3553d3b3d (patch)
treee36fb8e1ca94ad05205029460c6e420a3ec7cfa4 /security/tomoyo
parentaec7291003df78cb71fd461d7b672912bde55807 (diff)
downloadlwn-c283782fc5d60c4d8169137c6f955aa3553d3b3d.tar.gz
lwn-c283782fc5d60c4d8169137c6f955aa3553d3b3d.zip
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 <hui.wang@canonical.com> Reviewed-by: Marek Vasut <marex@denx.de> Link: https://patch.msgid.link/20240927114610.1278935-1-hui.wang@canonical.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'security/tomoyo')
0 files changed, 0 insertions, 0 deletions