crypto: crypto4xx - fix an error code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sat, 10 Jun 2017 12:54:33 +0000 (14:54 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2017 03:21:14 +0000 (11:21 +0800)
commitffe55266e36bef40b940b38bfef4fcff4957624d
treed594798cb863b74edf1829a4f5fd2e1a1b93e646
parent88d58ef891d868303acd7951cb1282c911f736ac
crypto: crypto4xx - fix an error code

If 'kzalloc' fails, we return 0 which means success.
return -ENOMEM instead as already done a few lines above.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amcc/crypto4xx_core.c