crypto: cryptd - Fix uninitialized return value
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 15 Jul 2009 08:51:04 +0000 (16:51 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jul 2009 08:51:04 +0000 (16:51 +0800)
commit05ed8758fa30e088766905d0d600aa393e144353
treea9d239f358197e0109c7be9701382831cecd241a
parent305f9db22d62da10c43c7fd7554ec923c2b8727e
crypto: cryptd - Fix uninitialized return value

If cryptd_alloc_instance() fails, the return value is uninitialized.
This patch fixes this by setting the return value.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cryptd.c