Re: [PATCH RFC] clocksource: dbx500-prcmu: check timer register mapping

From: Linus Walleij

Date: Wed Sep 16 2026 - 13:22:13 EST


On Fri, Sep 11, 2026 at 8:09 AM Slavin Liu <bolin.liu@xxxxxxxxxx> wrote:

> Return -ENOMEM if of_iomap() fails, before reading or configuring
> the timer register block.
>
> Detected by static analysis and reviewed with AI-assisted source auditing.
>
> Fixes: 9d2aa8c7961a ("ARM/clocksource: use automatic DT probing for ux500 PRCMU")
> Assisted-by: LLM
> Signed-off-by: Slavin Liu <bolin.liu@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij