提交 7e207d85 编写于 作者: W Wei Yongjun 提交者: Herbert Xu

crypto: caam - fix error return code in caam_qi_init()

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

Fixes: 67c2315d ("crypto: caam - add Queue Interface (QI) backend support")
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Acked-by: NHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 0e93708d
...@@ -789,7 +789,7 @@ int caam_qi_init(struct platform_device *caam_pdev) ...@@ -789,7 +789,7 @@ int caam_qi_init(struct platform_device *caam_pdev)
dev_err(qidev, "Can't allocate CAAM cache\n"); dev_err(qidev, "Can't allocate CAAM cache\n");
free_rsp_fqs(); free_rsp_fqs();
platform_device_unregister(qi_pdev); platform_device_unregister(qi_pdev);
return err; return -ENOMEM;
} }
/* Done with the CGRs; restore the cpus allowed mask */ /* Done with the CGRs; restore the cpus allowed mask */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册