Re: [PATCH] of/irq: Refer to actual buffer size in of_irq_parse_one()
From: Rob Herring (Arm)
Date: Mon Aug 26 2024 - 09:45:25 EST
On Tue, 20 Aug 2024 14:16:53 +0200, Geert Uytterhoeven wrote:
> Replace two open-coded calculations of the buffer size by invocations of
> sizeof() on the buffer itself, to make sure the code will always use the
> actual buffer size.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> ---
> If you think this warrants a Fixes-tag:
>
> Fixes: b739dffa5d570b41 ("of/irq: Prevent device address out-of-bounds read in interrupt map walk")
> ---
> drivers/of/irq.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Applied, thanks!