Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232443
b: refs/heads/master
c: b305325
h: refs/heads/master
i:
  232441: 53a33a2
  232439: 6302d74
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Jan 21, 2011
1 parent bfcd718 commit c98c3bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a3c869a6021f4abcd69aa5fbb15c63f69eb36fe
refs/heads/master: b30532515f0a62bfe17207ab00883dd262497006
4 changes: 4 additions & 0 deletions trunk/drivers/net/bonding/bond_3ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2470,6 +2470,10 @@ int bond_3ad_lacpdu_recv(struct sk_buff *skb, struct net_device *dev, struct pac
if (!(dev->flags & IFF_MASTER))
goto out;

skb = skb_share_check(skb, GFP_ATOMIC);
if (!skb)
goto out;

if (!pskb_may_pull(skb, sizeof(struct lacpdu)))
goto out;

Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/bonding/bond_alb.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ static int rlb_arp_recv(struct sk_buff *skb, struct net_device *bond_dev, struct
goto out;
}

skb = skb_share_check(skb, GFP_ATOMIC);
if (!skb)
goto out;

if (!pskb_may_pull(skb, arp_hdr_len(bond_dev)))
goto out;

Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2733,6 +2733,10 @@ static int bond_arp_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
if (!slave || !slave_do_arp_validate(bond, slave))
goto out_unlock;

skb = skb_share_check(skb, GFP_ATOMIC);
if (!skb)
goto out_unlock;

if (!pskb_may_pull(skb, arp_hdr_len(dev)))
goto out_unlock;

Expand Down

0 comments on commit c98c3bd

Please sign in to comment.