]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: imx_dsp_rproc: Fix NULL vs IS_ERR() bug in imx_dsp_rproc_add_carveout()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 27 Nov 2025 07:14:01 +0000 (10:14 +0300)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 27 Nov 2025 15:52:54 +0000 (08:52 -0700)
commit099a60cca1b84e60fdaefcd5d93736de9dba9cf9
treeca128de7d6d0b2ec9f516d5a1b919d2b95262f61
parentac82dbc539c4c167f351e2e91c93508de73a5cd1
remoteproc: imx_dsp_rproc: Fix NULL vs IS_ERR() bug in imx_dsp_rproc_add_carveout()

The devm_ioremap_resource_wc() function never returns NULL, it returns
error pointers.  Update the error checking to match.

Fixes: 67a7bc7f0358 ("remoteproc: Use of_reserved_mem_region_* functions for "memory-region"")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Link: https://lore.kernel.org/r/aSf6OerBbPcxBUVt@stanley.mountain
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c