]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-aes - fix error return code in omap_aes_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 03:27:32 +0000 (03:27 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Sep 2016 10:27:35 +0000 (18:27 +0800)
commitbc2ea231cbb2f2b17517bf807be6f9b786872fc3
tree46ff4fa7a6c2337027d5b8b2230a928acb1b0597
parent2d3bff5e3c4779df35660c0377100b070cda39c4
crypto: omap-aes - fix error return code in omap_aes_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: 031b2c759d6c ("crypto: omap-aes - Support crypto engine framework")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c