]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: k3: Fix NULL vs IS_ERR() bug in k3_reserved_mem_init()
authorChen Ni <nichen@iscas.ac.cn>
Fri, 27 Feb 2026 09:21:10 +0000 (17:21 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 5 Mar 2026 17:22:05 +0000 (10:22 -0700)
commit5b1f4b5c72cc40e676293b8609cacef7e1545beb
treed3b504a9fcaf97d35cb0817be74bc81e9d984182
parent665eebebb029690a5b2f92e481020877cc6c8d36
remoteproc: k3: Fix NULL vs IS_ERR() bug in k3_reserved_mem_init()

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/20260227092110.4044313-1-nichen@iscas.ac.cn
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_common.c