]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit7f3f1ea5a99fb83a883aaa7a3e33c8d5505dcd95
tree2663aa7139f884ba5ef0425911fc9a579fcb1c6f
parent0591b8a55c8b24f1b0000022745c50dffc982fef
[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