Skip to content
Commit 4eae0ee0 authored by Breno Leitao's avatar Breno Leitao Committed by Jakub Kicinski
Browse files

arp: switch to dev_getbyhwaddr() in arp_req_set_public()



The arp_req_set_public() function is called with the rtnl lock held,
which provides enough synchronization protection. This makes the RCU
variant of dev_getbyhwaddr() unnecessary. Switch to using the simpler
dev_getbyhwaddr() function since we already have the required rtnl
locking.

This change helps maintain consistency in the networking code by using
the appropriate helper function for the existing locking context.
Since we're not holding the RCU read lock in arp_req_set_public()
existing code could trigger false positive locking warnings.

Fixes: 941666c2 ("net: RCU conversion of dev_getbyhwaddr() and arp_ioctl()")
Suggested-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250218-arm_fix_selftest-v5-2-d3d6892db9e1@debian.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4b5a28b3
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