crypto: api - Fix zeroing on free
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Feb 2009 05:48:24 +0000 (16:48 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Feb 2009 05:48:53 +0000 (16:48 +1100)
commit7b2cd92adc5430b0c1adeb120971852b4ea1ab08
tree217ce22454d6e1d14b4a6e77db6cf60c8e725c12
parent4abfd73e34e7915e62b6f75bd3e9f4014f830910
crypto: api - Fix zeroing on free

Geert Uytterhoeven pointed out that we're not zeroing all the
memory when freeing a transform.  This patch fixes it by calling
ksize to ensure that we zero everything in sight.

Reported-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
include/linux/crypto.h