Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223642
b: refs/heads/master
c: da521b2
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 21, 2010
1 parent 03edb97 commit 324999c
Show file tree
Hide file tree
Showing 2 changed files with 4 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: aa3e219997e4b949be4199660936099ded0b401f
refs/heads/master: da521b2c4f046383bc8941604174bc0e8bffb430
4 changes: 3 additions & 1 deletion trunk/include/net/pkt_cls.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ static inline unsigned char * tcf_get_base_ptr(struct sk_buff *skb, int layer)
static inline int tcf_valid_offset(const struct sk_buff *skb,
const unsigned char *ptr, const int len)
{
return unlikely((ptr + len) < skb_tail_pointer(skb) && ptr > skb->head);
return likely((ptr + len) <= skb_tail_pointer(skb) &&
ptr >= skb->head &&
(ptr <= (ptr + len)));
}

#ifdef CONFIG_NET_CLS_IND
Expand Down

0 comments on commit 324999c

Please sign in to comment.