[PATCH 1/2] ARM: Fix off by one in checking DMA zone size

Linus Walleij linus.walleij at linaro.org
Thu Mar 24 12:02:04 PDT 2022


On Thu, Mar 24, 2022 at 6:54 PM Florian Fainelli <f.fainelli at gmail.com> wrote:

> The maximum DMA address is PAGE_OFFSET + arm_dma_zone_size - 1, fix this
> by doing the appropriate subtraction.
>
> Fixes: 650320181a08 ("ARM: change ARM_DMA_ZONE_SIZE into a variable")
> Suggested-by: Geert Uytterhoeven <geert at linux-m68k.org>
> Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list