Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202961
b: refs/heads/master
c: d27f9b3
h: refs/heads/master
i:
  202959: a86db5e
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 16, 2010
1 parent e6dceca commit 00c160b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 2bbdf389a9432270147c8e8e35b021ad61772f65
refs/heads/master: d27f9b35827ec91d71d3561c127a0a8135fb470d
3 changes: 1 addition & 2 deletions trunk/net/ipv4/ip_fragment.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ static int ip_frag_reasm(struct ipq *qp, struct sk_buff *prev,

skb_shinfo(head)->frag_list = head->next;
skb_push(head, head->data - skb_network_header(head));
atomic_sub(head->truesize, &qp->q.net->mem);

for (fp=head->next; fp; fp = fp->next) {
head->data_len += fp->len;
Expand All @@ -566,8 +565,8 @@ static int ip_frag_reasm(struct ipq *qp, struct sk_buff *prev,
else if (head->ip_summed == CHECKSUM_COMPLETE)
head->csum = csum_add(head->csum, fp->csum);
head->truesize += fp->truesize;
atomic_sub(fp->truesize, &qp->q.net->mem);
}
atomic_sub(head->truesize, &qp->q.net->mem);

head->next = NULL;
head->dev = dev;
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/ipv6/reassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *prev,
skb_shinfo(head)->frag_list = head->next;
skb_reset_transport_header(head);
skb_push(head, head->data - skb_network_header(head));
atomic_sub(head->truesize, &fq->q.net->mem);

for (fp=head->next; fp; fp = fp->next) {
head->data_len += fp->len;
Expand All @@ -534,8 +533,8 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *prev,
else if (head->ip_summed == CHECKSUM_COMPLETE)
head->csum = csum_add(head->csum, fp->csum);
head->truesize += fp->truesize;
atomic_sub(fp->truesize, &fq->q.net->mem);
}
atomic_sub(head->truesize, &fq->q.net->mem);

head->next = NULL;
head->dev = dev;
Expand Down

0 comments on commit 00c160b

Please sign in to comment.