Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210806
b: refs/heads/master
c: ab12811
h: refs/heads/master
v: v3
  • Loading branch information
Andy Gospodarek authored and David S. Miller committed Sep 14, 2010
1 parent b140282 commit 30878f8
Show file tree
Hide file tree
Showing 3 changed files with 7 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: a89b47639f3e11dd9a8eb78a5d3382e109c876f2
refs/heads/master: ab12811c89e88f2e66746790b1fe4469ccb7bdd9
3 changes: 3 additions & 0 deletions trunk/drivers/net/bonding/bond_3ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2466,6 +2466,9 @@ int bond_3ad_lacpdu_recv(struct sk_buff *skb, struct net_device *dev, struct pac
if (!(dev->flags & IFF_MASTER))
goto out;

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

read_lock(&bond->lock);
slave = bond_get_slave_by_dev((struct bonding *)netdev_priv(dev),
orig_dev);
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/net/bonding/bond_alb.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ static int rlb_arp_recv(struct sk_buff *skb, struct net_device *bond_dev, struct
goto out;
}

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

if (skb->len < sizeof(struct arp_pkt)) {
pr_debug("Packet is too small to be an ARP\n");
goto out;
Expand Down

0 comments on commit 30878f8

Please sign in to comment.