summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-12-04 12:18:43 +0100
committerAdrian Bunk <bunk@stusta.de>2006-12-04 12:18:43 +0100
commit8cf6005296c61ff46afcc1f08b1791b4aa2e9ba5 (patch)
tree6c82662c07b05a70f3680f6d995d393569cb0088 /net
parent8e0a9377e5f04b0f2982b8f6afc38c80d828c250 (diff)
downloadlwn-8cf6005296c61ff46afcc1f08b1791b4aa2e9ba5.tar.gz
lwn-8cf6005296c61ff46afcc1f08b1791b4aa2e9ba5.zip
remove garbage the sneaked into the ext3 fix
Spotted by Thomas Voegtle. Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/ip_output.c4
-rw-r--r--net/ipv6/ip6_output.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index b24c6a0c5574..8dcba3887f04 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -946,7 +946,7 @@ alloc_new_skb:
skb_prev->csum = csum_sub(skb_prev->csum,
skb->csum);
data += fraggap;
- pskb_trim_unique(skb_prev, maxfraglen);
+ skb_trim(skb_prev, maxfraglen);
}
copy = datalen - transhdrlen - fraggap;
@@ -1139,7 +1139,7 @@ ssize_t ip_append_page(struct sock *sk, struct page *page,
data, fraggap, 0);
skb_prev->csum = csum_sub(skb_prev->csum,
skb->csum);
- pskb_trim_unique(skb_prev, maxfraglen);
+ skb_trim(skb_prev, maxfraglen);
}
/*
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 1b528aa13200..5bf70b1442ea 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -1046,7 +1046,7 @@ alloc_new_skb:
skb_prev->csum = csum_sub(skb_prev->csum,
skb->csum);
data += fraggap;
- pskb_trim_unique(skb_prev, maxfraglen);
+ skb_trim(skb_prev, maxfraglen);
}
copy = datalen - transhdrlen - fraggap;
if (copy < 0) {