Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130492
b: refs/heads/master
c: 95e3b24
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 30, 2009
1 parent a09c912 commit 5bda78f
Show file tree
Hide file tree
Showing 2 changed files with 4 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: e125646ab56b490d0390b158e0afa9cccfc1f897
refs/heads/master: 95e3b24cfb4ec0479d2c42f7a1780d68063a542a
5 changes: 3 additions & 2 deletions trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2212,10 +2212,10 @@ unsigned int skb_seq_read(unsigned int consumed, const u8 **data,
return 0;

next_skb:
block_limit = skb_headlen(st->cur_skb);
block_limit = skb_headlen(st->cur_skb) + st->stepped_offset;

if (abs_offset < block_limit) {
*data = st->cur_skb->data + abs_offset;
*data = st->cur_skb->data + (abs_offset - st->stepped_offset);
return block_limit - abs_offset;
}

Expand Down Expand Up @@ -2257,6 +2257,7 @@ unsigned int skb_seq_read(unsigned int consumed, const u8 **data,
} else if (st->root_skb == st->cur_skb &&
skb_shinfo(st->root_skb)->frag_list) {
st->cur_skb = skb_shinfo(st->root_skb)->frag_list;
st->frag_idx = 0;
goto next_skb;
}

Expand Down

0 comments on commit 5bda78f

Please sign in to comment.