crypto: aesni-intel - fix wrong kfree pointer
authorMilan Broz <mbroz@redhat.com>
Thu, 28 Jun 2012 15:26:02 +0000 (17:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Jul 2012 03:06:13 +0000 (11:06 +0800)
commitbf084d8f6eb4ded3f90a6ab79bb682db00ebfbd4
tree6852997847517657887a88b7dc84f227d5bf094e
parent82c2f9607b8a4667e9d89613478748f4e2b7288b
crypto: aesni-intel - fix wrong kfree pointer

kfree(new_key_mem) in rfc4106_set_key() should be called on malloced pointer,
not on aligned one, otherwise it can cause invalid pointer on free.

(Seen at least once when running tcrypt tests with debug kernel.)

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c