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)
commitc98ef8dbca18db133bb4bc7643b975ee2612be2f
tree46ff4fa7a6c2337027d5b8b2230a928acb1b0597
parent59af156625ab1d11436b04806ee3c1c795b29a93
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: 0529900a01cb ("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