crypto: omap-des - fix error return code in omap_des_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 03:27:15 +0000 (03:27 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Sep 2016 10:27:34 +0000 (18:27 +0800)
commit59af156625ab1d11436b04806ee3c1c795b29a93
treeac20c156e219c8de1d2e18b85294b65b68ea6f82
parent36e09e1f874baf581604a76ce81aae0538eb0a23
crypto: omap-des - fix error return code in omap_des_probe()

Fix to return error code -ENOMEM from the crypto_engine_alloc_init()
error handling case instead of 0, as done elsewhere in this function.

Fixes: f1b77aaca85a ("crypto: omap-des - Integrate with the crypto
engine framework")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-des.c