Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204028
b: refs/heads/master
c: 66d50d2
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Aug 3, 2010
1 parent 8ff7db6 commit 53c16d9
Show file tree
Hide file tree
Showing 2 changed files with 5 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: eabd8ba9060444cac5b89a3306e607c15ec37418
refs/heads/master: 66d50d25502cd9b7d6e3ebbf4e241259c1283eaf
6 changes: 4 additions & 2 deletions trunk/net/sched/cls_u32.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ static int u32_classify(struct sk_buff *skb, struct tcf_proto *tp, struct tcf_re
#endif

for (i = n->sel.nkeys; i>0; i--, key++) {
unsigned int toff;
int toff = off + key->off + (off2 & key->offmask);
__be32 *data, _data;

toff = off + key->off + (off2 & key->offmask);
if (skb_headroom(skb) + toff < 0)
goto out;

data = skb_header_pointer(skb, toff, 4, &_data);
if (!data)
goto out;
Expand Down

0 comments on commit 53c16d9

Please sign in to comment.