Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265530
b: refs/heads/master
c: 408dadf
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and David S. Miller committed Aug 25, 2011
1 parent daa3648 commit 1e1a28a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: aff65da0f1be5daec44231972b6b5fc45bfa7a58
refs/heads/master: 408dadf03fe365f12f85d5c3d959f4bb888b9f3e
7 changes: 4 additions & 3 deletions trunk/net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,13 +1480,13 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
if (page && (left = PAGE_SIZE - off) > 0) {
if (copy >= left)
copy = left;
if (page != frag->page) {
if (page != skb_frag_page(frag)) {
if (i == MAX_SKB_FRAGS) {
err = -EMSGSIZE;
goto error;
}
get_page(page);
skb_fill_page_desc(skb, i, page, sk->sk_sndmsg_off, 0);
skb_frag_ref(skb, i);
frag = &skb_shinfo(skb)->frags[i];
}
} else if(i < MAX_SKB_FRAGS) {
Expand All @@ -1506,7 +1506,8 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
err = -EMSGSIZE;
goto error;
}
if (getfrag(from, page_address(frag->page)+frag->page_offset+frag->size, offset, copy, skb->len, skb) < 0) {
if (getfrag(from, skb_frag_address(frag)+frag->size,
offset, copy, skb->len, skb) < 0) {
err = -EFAULT;
goto error;
}
Expand Down

0 comments on commit 1e1a28a

Please sign in to comment.