Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64996
b: refs/heads/master
c: 31bac44
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Sep 16, 2007
1 parent 0af58f8 commit 4da74b1
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 559cf710b07c5e2cfa3fb8d8f4a1320fd84c53f9
refs/heads/master: 31bac44468257986484703cc09da8a9dcae88a36
6 changes: 3 additions & 3 deletions trunk/drivers/net/pppoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ static int pppoe_rcv(struct sk_buff *skb,
struct pppoe_hdr *ph;
struct pppox_sock *po;

if (!pskb_may_pull(skb, sizeof(struct pppoe_hdr)))
goto drop;

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

if (!pskb_may_pull(skb, sizeof(struct pppoe_hdr)))
goto drop;

ph = pppoe_hdr(skb);

po = get_item((unsigned long) ph->sid, eth_hdr(skb)->h_source, dev->ifindex);
Expand Down

0 comments on commit 4da74b1

Please sign in to comment.