[AUDIT]: Increase skb->truesize in audit_expand
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 29 Jan 2008 04:47:09 +0000 (20:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:08 +0000 (19:27 -0800)
commit406a1d868001423c85a3165288e566e65f424fe6
tree2663aa7139f884ba5ef0425911fc9a579fcb1c6f
parent29ffe1a5c52dae13b6efead97aab9b058f38fce4
[AUDIT]: Increase skb->truesize in audit_expand

The recent UDP patch exposed this bug in the audit code.  It
was calling pskb_expand_head without increasing skb->truesize.
The caller of pskb_expand_head needs to do so because that function
is designed to be called in places where truesize is already fixed
and therefore it doesn't update its value.

Because the audit system is using it in a place where the truesize
has not yet been fixed, it needs to update its value manually.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/audit.c