crypto: shash - Fix tfm destruction
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Feb 2009 05:51:25 +0000 (16:51 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Feb 2009 05:51:25 +0000 (16:51 +1100)
commit412e87ae5d852bc3d836f475c19d954b3324363d
tree4f6a953f20f94eb076b178b3b7ac31bc5508aff9
parent7b2cd92adc5430b0c1adeb120971852b4ea1ab08
crypto: shash - Fix tfm destruction

We were freeing an offset into the slab object instead of the
start.  This patch fixes it by calling crypto_destroy_tfm which
allows the correct address to be given.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/hash.h