diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-17 16:01:22 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-22 18:32:47 +0800 |
commit | 7514e3688811e610640ec2201ca14dfebfe13442 (patch) | |
tree | b5c66ae6905fe47d4422e9f23d870d1a5c96f259 /drivers/crypto | |
parent | 104a32e85f250742bc37e14d19a5dec706bed76e (diff) | |
download | op-kernel-dev-7514e3688811e610640ec2201ca14dfebfe13442.zip op-kernel-dev-7514e3688811e610640ec2201ca14dfebfe13442.tar.gz |
crypto: ccp - Fix return value check in ccp_dmaengine_register()
Fix the retrn value check which testing the wrong variable
in ccp_dmaengine_register().
Fixes: 58ea8abf4904 ("crypto: ccp - Register the CCP as a DMA resource")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/ccp/ccp-dmaengine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c index 2e5a05c..6553912 100644 --- a/drivers/crypto/ccp/ccp-dmaengine.c +++ b/drivers/crypto/ccp/ccp-dmaengine.c @@ -648,7 +648,7 @@ int ccp_dmaengine_register(struct ccp_device *ccp) dma_desc_cache_name = devm_kasprintf(ccp->dev, GFP_KERNEL, "%s-dmaengine-desc-cache", ccp->name); - if (!dma_cmd_cache_name) { + if (!dma_desc_cache_name) { ret = -ENOMEM; goto err_cache; } |