Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171497
b: refs/heads/master
c: ff879eb
h: refs/heads/master
i:
  171495: fb3aef0
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Nov 11, 2009
1 parent 9954119 commit 8872c6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 61fbab77a843d2e772322ac130715cc9a98bf718
refs/heads/master: ff879eb611dba859c4349048a32789e8c82afa91
6 changes: 3 additions & 3 deletions trunk/net/can/bcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ static char *bcm_proc_getifname(char *result, int ifindex)
if (!ifindex)
return "any";

read_lock(&dev_base_lock);
dev = __dev_get_by_index(&init_net, ifindex);
rcu_read_lock();
dev = dev_get_by_index_rcu(&init_net, ifindex);
if (dev)
strcpy(result, dev->name);
else
strcpy(result, "???");
read_unlock(&dev_base_lock);
rcu_read_unlock();

return result;
}
Expand Down

0 comments on commit 8872c6f

Please sign in to comment.