Skip to content

Commit 3f4e403

Browse files
Chen NiChristophe Leroy (CS GROUP)
authored andcommitted
soc: fsl: cpm1: qmc: Fix error check for devm_ioremap_resource() in qmc_qe_init_resources()
Fix wrong variable used for error checking after devm_ioremap_resource() call. The function checks qmc->scc_pram instead of qmc->dpram, which could lead to incorrect error handling. Fixes: eb680d5 ("soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE) implementation") Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Acked-by: Herve Codina <herve.codina@bootlin.com> Link: https://lore.kernel.org/r/20260209015904.871269-1-nichen@iscas.ac.cn Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
1 parent 0140770 commit 3f4e403

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/soc/fsl/qe/qmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,8 +1790,8 @@ static int qmc_qe_init_resources(struct qmc *qmc, struct platform_device *pdev)
17901790
return -EINVAL;
17911791
qmc->dpram_offset = res->start - qe_muram_dma(qe_muram_addr(0));
17921792
qmc->dpram = devm_ioremap_resource(qmc->dev, res);
1793-
if (IS_ERR(qmc->scc_pram))
1794-
return PTR_ERR(qmc->scc_pram);
1793+
if (IS_ERR(qmc->dpram))
1794+
return PTR_ERR(qmc->dpram);
17951795

17961796
return 0;
17971797
}

0 commit comments

Comments
 (0)