net: arp_ioctl() must hold RTNL
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 24 Jan 2011 21:16:16 +0000 (13:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jan 2011 21:16:16 +0000 (13:16 -0800)
commitc506653d35249bb4738bb139c24362e1ae724bc1
tree24fdcd4d25b8e0fd14c4074f3ef3673d3c7f6eb3
parent0a0b7a5f7a043d86a95990d3227cf7e823ae52ac
net: arp_ioctl() must hold RTNL

Commit 941666c2e3e0 "net: RCU conversion of dev_getbyhwaddr() and
arp_ioctl()" introduced a regression, reported by Jamie Heilman.
"arp -Ds 192.168.2.41 eth0 pub" triggered the ASSERT_RTNL() assert
in pneigh_lookup()

Removing RTNL requirement from arp_ioctl() was a mistake, just revert
that part.

Reported-by: Jamie Heilman <jamie@audible.transient.net>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/ipv4/arp.c