]> git.dujemihanovic.xyz Git - u-boot.git/commit
lmb: remove overlapping region with next range
authorUdit Kumar <u-kumar1@ti.com>
Tue, 26 Sep 2023 11:24:42 +0000 (16:54 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 9 Oct 2023 19:24:31 +0000 (15:24 -0400)
commitedb5824be17f018c76d094372a4573750be7c631
tree3656eb5f4c31fe543f58c05df66ca3249fd5c5cd
parent4f9c7a9f547785dc6028e3d737ab7c53e7851b17
lmb: remove overlapping region with next range

In case of new memory range to be added is coalesced
with any already added non last lmb region.

And there is possibility that, then region in which new memory
range added is not adjacent to next region. But have some
sections are overlapping.

So along with adjacency check with next lmb region,
check for overlap should be done.

In case overlap  is found, adjust and merge these two lmb
region into one.

Reported-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Udit Kumar <u-kumar1@ti.com>
lib/lmb.c