Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171159
b: refs/heads/master
c: b4d745d
h: refs/heads/master
i:
  171157: 61e0759
  171155: ec81361
  171151: 4ae4623
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 4, 2009
1 parent 12ffd43 commit 5b93026
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d94d9fee9fa4e66a0b91640a694b8b10177075b3
refs/heads/master: b4d745db12bd2d45a456565ed63325bbfc689e68
10 changes: 6 additions & 4 deletions trunk/net/decnet/dn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,15 +600,17 @@ static void dn_dev_check_default(struct net_device *dev)
dev_put(dev);
}

/*
* Called with RTNL
*/
static struct dn_dev *dn_dev_by_index(int ifindex)
{
struct net_device *dev;
struct dn_dev *dn_dev = NULL;
dev = dev_get_by_index(&init_net, ifindex);
if (dev) {

dev = __dev_get_by_index(&init_net, ifindex);
if (dev)
dn_dev = dev->dn_ptr;
dev_put(dev);
}

return dn_dev;
}
Expand Down

0 comments on commit 5b93026

Please sign in to comment.