Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88014
b: refs/heads/master
c: 27785d8
h: refs/heads/master
v: v3
  • Loading branch information
Joonwoo Park authored and David S. Miller committed Mar 28, 2008
1 parent 1b22940 commit 70514cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 2ba2506ca7ca62c56edaa334b0fe61eb5eab6ab0
refs/heads/master: 27785d83e4256fedeff45256d4c827fdcb47f2ce
6 changes: 5 additions & 1 deletion trunk/net/llc/llc_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ static inline int llc_fixup_skb(struct sk_buff *skb)
skb_pull(skb, llc_len);
if (skb->protocol == htons(ETH_P_802_2)) {
__be16 pdulen = eth_hdr(skb)->h_proto;
u16 data_size = ntohs(pdulen) - llc_len;
s32 data_size = ntohs(pdulen) - llc_len;

if (data_size < 0 ||
((skb_tail_pointer(skb) -
(u8 *)pdu) - llc_len) < data_size)
return 0;
if (unlikely(pskb_trim_rcsum(skb, data_size)))
return 0;
}
Expand Down

0 comments on commit 70514cd

Please sign in to comment.