Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224405
b: refs/heads/master
c: c04914a
h: refs/heads/master
i:
  224403: ca5d2b5
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 17, 2010
1 parent 7c77fba commit 73a14a8
Show file tree
Hide file tree
Showing 3 changed files with 3 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: a17531fa4c951f32ca4f90b04ca42cfb11924098
refs/heads/master: c04914af6861d62df303aeedbbe554972ce4e736
3 changes: 1 addition & 2 deletions trunk/drivers/net/bonding/bond_3ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2474,8 +2474,7 @@ int bond_3ad_lacpdu_recv(struct sk_buff *skb, struct net_device *dev, struct pac
goto out;

read_lock(&bond->lock);
slave = bond_get_slave_by_dev((struct bonding *)netdev_priv(dev),
orig_dev);
slave = bond_get_slave_by_dev(netdev_priv(dev), orig_dev);
if (!slave)
goto out_unlock;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bonding.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)
return NULL;
}

return (struct bonding *)netdev_priv(slave->dev->master);
return netdev_priv(slave->dev->master);
}

static inline bool bond_is_lb(const struct bonding *bond)
Expand Down

0 comments on commit 73a14a8

Please sign in to comment.