Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171109
b: refs/heads/master
c: 3710bec
h: refs/heads/master
i:
  171107: 4225ea3
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 2, 2009
1 parent b301f7d commit 877796e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 685c7944055b9de51ff509719070afae92b3dbe1
refs/heads/master: 3710becf8a58a5c6c4e797e3a3c968c161abdb41
8 changes: 4 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4315,12 +4315,12 @@ int dev_set_mac_address(struct net_device *dev, struct sockaddr *sa)
EXPORT_SYMBOL(dev_set_mac_address);

/*
* Perform the SIOCxIFxxx calls, inside read_lock(dev_base_lock)
* Perform the SIOCxIFxxx calls, inside rcu_read_lock()
*/
static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd)
{
int err;
struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name);
struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name);

if (!dev)
return -ENODEV;
Expand Down Expand Up @@ -4552,9 +4552,9 @@ int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg)
case SIOCGIFINDEX:
case SIOCGIFTXQLEN:
dev_load(net, ifr.ifr_name);
read_lock(&dev_base_lock);
rcu_read_lock();
ret = dev_ifsioc_locked(net, &ifr, cmd);
read_unlock(&dev_base_lock);
rcu_read_unlock();
if (!ret) {
if (colon)
*colon = ':';
Expand Down

0 comments on commit 877796e

Please sign in to comment.