[RESEND PATCH v5 2/6] fdtdec: Fix boundary check

Bin Meng bmeng.cn at gmail.com
Sat Apr 18 14:24:52 CEST 2020


On Sat, Apr 18, 2020 at 2:10 PM Atish Patra <atish.patra at wdc.com> wrote:
>
> In U-Boot, the reserved memory end address is considered as a inclusive
> address. This notion is followed while adding a reserved memory node to
> the DT.
>
> For example:
> end_address = start_address + size - 1
>
> Follow the same notion and fix the end address computation while checking
> for existing nodes.
>
> Signed-off-by: Atish Patra <atish.patra at wdc.com>
> ---
>  lib/fdtdec.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list