]> err.no Git - linux-2.6/commit
[IPCOMP]: Fix truesize after decompression
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 11 Jul 2006 20:50:09 +0000 (13:50 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 12 Jul 2006 20:58:55 +0000 (13:58 -0700)
commitda952315c9c625bd513c6162613fd3fd01d91aae
treea57f60a953d0596beb3d230663db34a9b7a02b1a
parent8a6ce0c083f5736e90dabe6d8ce077e7dd0fa35f
[IPCOMP]: Fix truesize after decompression

The truesize check has uncovered the fact that we forgot to update truesize
after pskb_expand_head.  Unfortunately pskb_expand_head can't update it for
us because it's used in all sorts of different contexts, some of which would
not allow truesize to be updated by itself.

So the solution for now is to simply update it in IPComp.

This patch also changes skb_put to __skb_put since we've just expanded
tailroom by exactly that amount so we know it's there (but gcc does not).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipcomp.c
net/ipv6/ipcomp6.c