summaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorEric Dumazet2011-01-24 22:16:16 +0100
committerDavid S. Miller2011-01-24 22:16:16 +0100
commitc506653d35249bb4738bb139c24362e1ae724bc1 (patch)
tree24fdcd4d25b8e0fd14c4074f3ef3673d3c7f6eb3 /net/core/dev.c
parentcan: add driver for Softing card (diff)
downloadkernel-qcow2-linux-c506653d35249bb4738bb139c24362e1ae724bc1.tar.gz
kernel-qcow2-linux-c506653d35249bb4738bb139c24362e1ae724bc1.tar.xz
kernel-qcow2-linux-c506653d35249bb4738bb139c24362e1ae724bc1.zip
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>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 8393ec408cd4..1e5077d2cca6 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -749,7 +749,8 @@ EXPORT_SYMBOL(dev_get_by_index);
* @ha: hardware address
*
* Search for an interface by MAC address. Returns NULL if the device
- * is not found or a pointer to the device. The caller must hold RCU
+ * is not found or a pointer to the device.
+ * The caller must hold RCU or RTNL.
* The returned device has not had its ref count increased
* and the caller must therefore be careful about locking
*