Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9346
b: refs/heads/master
c: 096f0eb
h: refs/heads/master
v: v3
  • Loading branch information
Jochen Friedrich authored and Arnaldo Carvalho de Melo committed Sep 22, 2005
1 parent d43db4d commit 6937627
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 5564af21ae7900889c5151e5b16bd42cdda11a77
refs/heads/master: 096f0eb1dff326ddebfedeb128fb48d5b7ca75e1
8 changes: 6 additions & 2 deletions trunk/net/llc/llc_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,19 @@ static __inline__ int llc_pdu_type(struct sk_buff *skb)
static inline int llc_fixup_skb(struct sk_buff *skb)
{
u8 llc_len = 2;
struct llc_pdu_sn *pdu;
struct llc_pdu_un *pdu;

if (unlikely(!pskb_may_pull(skb, sizeof(*pdu))))
return 0;

pdu = (struct llc_pdu_sn *)skb->data;
pdu = (struct llc_pdu_un *)skb->data;
if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) == LLC_PDU_TYPE_U)
llc_len = 1;
llc_len += 2;

if (unlikely(!pskb_may_pull(skb, llc_len)))
return 0;

skb->h.raw += llc_len;
skb_pull(skb, llc_len);
if (skb->protocol == htons(ETH_P_802_2)) {
Expand Down

0 comments on commit 6937627

Please sign in to comment.