[PATCH] perf/arm-cmn: Fix incorrect error check for devm_ioremap()
Will Deacon
will at kernel.org
Thu Mar 26 08:34:16 PDT 2026
On Thu, 26 Mar 2026 17:08:56 +0800, Chen Ni wrote:
> Check devm_ioremap() return value for NULL instead of ERR_PTR and return
> -ENOMEM on failure. devm_ioremap() never returns ERR_PTR, using IS_ERR()
> skips the error path and may cause a NULL pointer dereference.
>
>
Applied to will (for-next/perf), thanks!
[1/1] perf/arm-cmn: Fix incorrect error check for devm_ioremap()
https://git.kernel.org/will/c/d49802b6617b
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list