Skip to content
Commit cff69f72 authored by Diogo Jahchan Koike's avatar Diogo Jahchan Koike Committed by Jakub Kicinski
Browse files

ethtool: pse-pd: move pse validation into set



Move validation into set, removing .set_validate operation as its current
implementation holds the rtnl lock for acquiring the PHY device, defeating
the intended purpose of checking before grabbing the lock.

Reported-by: default avatar <syzbot+ec369e6d58e210135f71@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=ec369e6d58e210135f71


Fixes: 31748765 ("net: ethtool: pse-pd: Target the command to the requested PHY")
Signed-off-by: default avatarDiogo Jahchan Koike <djahchankoike@gmail.com>
Reviewed-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20240829184830.5861-1-djahchankoike@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6af91e3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment