]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
remoteproc: imx_rproc: Fix NULL vs IS_ERR() bug in imx_rproc_addr_init()
authorChen Ni <nichen@iscas.ac.cn>
Fri, 27 Feb 2026 09:15:46 +0000 (17:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2026 13:31:16 +0000 (15:31 +0200)
commitcc2fd6327026e35bbf03eff65ffd1dbacb399b15
tree15792133652391d2b2489fbbf0f037b67ed97bc6
parent935ee27d0904aa944cbcc979094c20e5ef62eead
remoteproc: imx_rproc: Fix NULL vs IS_ERR() bug in imx_rproc_addr_init()

commit 665eebebb029690a5b2f92e481020877cc6c8d36 upstream.

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: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20260227091546.4044246-1-nichen@iscas.ac.cn
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/remoteproc/imx_rproc.c