Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218413
b: refs/heads/master
c: b616b09
h: refs/heads/master
i:
  218411: d1fd261
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 25, 2010
1 parent ff76900 commit fb01af3
Show file tree
Hide file tree
Showing 3 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: 5202e173d7bc5ff832a4f36e66f26e00feb343c6
refs/heads/master: b616b09afabf6d569aa31176aa86f05d2586de3e
2 changes: 1 addition & 1 deletion trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ struct net_device {
/* Protocol specific pointers */

#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
struct vlan_group *vlgrp; /* VLAN group */
struct vlan_group __rcu *vlgrp; /* VLAN group */
#endif
#ifdef CONFIG_NET_DSA
void *dsa_ptr; /* dsa specific data */
Expand Down
6 changes: 3 additions & 3 deletions trunk/net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void unregister_vlan_dev(struct net_device *dev, struct list_head *head)

ASSERT_RTNL();

grp = real_dev->vlgrp;
grp = rtnl_dereference(real_dev->vlgrp);
BUG_ON(!grp);

/* Take it out of our own structures, but be sure to interlock with
Expand Down Expand Up @@ -177,7 +177,7 @@ int register_vlan_dev(struct net_device *dev)
struct vlan_group *grp, *ngrp = NULL;
int err;

grp = real_dev->vlgrp;
grp = rtnl_dereference(real_dev->vlgrp);
if (!grp) {
ngrp = grp = vlan_group_alloc(real_dev);
if (!grp)
Expand Down Expand Up @@ -385,7 +385,7 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,
dev->netdev_ops->ndo_vlan_rx_add_vid(dev, 0);
}

grp = dev->vlgrp;
grp = rtnl_dereference(dev->vlgrp);
if (!grp)
goto out;

Expand Down

0 comments on commit fb01af3

Please sign in to comment.