Re: [PATCH] accel/ethosu: check MMIO mapping errors in probe

Rob Herring <[email protected]>
Newsgroups org.kernel.vger.stable,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Thu, Jul 16, 2026 at 02:52:19PM +0800, [email protected] wrote:
> From: GuoHan Zhao <[email protected]>
> 
> devm_platform_ioremap_resource() returns an error pointer when the register
> resource cannot be mapped. ethosu_probe() stores it and continues until
> initialization dereferences it through MMIO accessors.
> 
> Return the mapping error before initializing the device.
> 
> Fixes: 5a5e9c0228e6 ("accel: Add Arm Ethos-U NPU driver")
> Cc: [email protected]
> Signed-off-by: GuoHan Zhao <[email protected]>
> ---
>  drivers/accel/ethosu/ethosu_drv.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks.

Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.