crypto: ahash - Fix setkey crash
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jul 2009 12:39:05 +0000 (20:39 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jul 2009 12:39:05 +0000 (20:39 +0800)
When the alignment check was made unconditional for ahash we
may end up crashing on shash algorithms because we're always
calling alg->setkey instead of tfm->setkey.

This patch fixes it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found