[PATCH] clk: ux500: fix a possible off-by-one in u8500_prcc_reset_base()
Linus Walleij
linus.walleij at linaro.org
Wed May 18 06:39:14 PDT 2022
On Wed, May 18, 2022 at 8:25 AM Hangyu Hua <hbh25y at gmail.com> wrote:
> Off-by-one will happen when index == ARRAY_SIZE(ur->base).
>
> Fixes: b14cbdfd467d ("clk: ux500: Add driver for the reset portions of PRCC")
> Signed-off-by: Hangyu Hua <hbh25y at gmail.com>
Good catch!
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list