crypto: api - Fix crypto_drop_spawn crash on blank spawns
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jul 2009 03:34:06 +0000 (11:34 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jul 2009 03:34:06 +0000 (11:34 +0800)
commit7ede5a5ba55a696a6e1d8456526e44635e966a81
tree95e934009410a0080fb8f41ee4eb6f203978fb1d
parentef5d590c9b9a00b017683006fe4cf959b9532336
crypto: api - Fix crypto_drop_spawn crash on blank spawns

This patch allows crypto_drop_spawn to be called on spawns that
have not been initialised or have failed initialisation.  This
fixes potential crashes during initialisation without adding
special case code.

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