Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321597
b: refs/heads/master
c: 3a7f8c3
h: refs/heads/master
i:
  321595: 7341353
v: v3
  • Loading branch information
Denis Efremov authored and David S. Miller committed Aug 12, 2012
1 parent b167385 commit ce7bce3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 2359a47671fc4fb0fe5e9945f76c2cb10792c0f8
refs/heads/master: 3a7f8c34fefb109903af9a0fac6d0d05f93335c5
3 changes: 2 additions & 1 deletion trunk/drivers/net/macvtap.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ static int get_slot(struct macvlan_dev *vlan, struct macvtap_queue *q)
int i;

for (i = 0; i < MAX_MACVTAP_QUEUES; i++) {
if (rcu_dereference(vlan->taps[i]) == q)
if (rcu_dereference_protected(vlan->taps[i],
lockdep_is_held(&macvtap_lock)) == q)
return i;
}

Expand Down

0 comments on commit ce7bce3

Please sign in to comment.