mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
crypto: jh7110 - Correct deferred probe return
[ Upstream commitd57343022b
] This fixes list_add corruption error when the driver is returned with -EPROBE_DEFER. It is also required to roll back the previous probe sequences in case of deferred_probe. So, this removes 'err_probe_defer" goto label and just use err_dma_init instead. Fixes:42ef0e944b
("crypto: starfive - Add crypto engine support") Signed-off-by: Chanho Park <chanho61.park@samsung.com> Reviewed-by: Jia Jie Ho <jiajie.ho@starfivetech.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2831f4d3bf
commit
6d9f17829e
1 changed files with 3 additions and 7 deletions
|
@ -180,12 +180,8 @@ static int starfive_cryp_probe(struct platform_device *pdev)
|
|||
spin_unlock(&dev_list.lock);
|
||||
|
||||
ret = starfive_dma_init(cryp);
|
||||
if (ret) {
|
||||
if (ret == -EPROBE_DEFER)
|
||||
goto err_probe_defer;
|
||||
else
|
||||
goto err_dma_init;
|
||||
}
|
||||
if (ret)
|
||||
goto err_dma_init;
|
||||
|
||||
/* Initialize crypto engine */
|
||||
cryp->engine = crypto_engine_alloc_init(&pdev->dev, 1);
|
||||
|
@ -233,7 +229,7 @@ static int starfive_cryp_probe(struct platform_device *pdev)
|
|||
|
||||
tasklet_kill(&cryp->aes_done);
|
||||
tasklet_kill(&cryp->hash_done);
|
||||
err_probe_defer:
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue