lmb: Treat a region which is a subset as equal
authorSjoerd Simons <sjoerd@collabora.com>
Sun, 12 Feb 2023 15:07:05 +0000 (16:07 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 12 Feb 2023 16:54:18 +0000 (11:54 -0500)
commit0d91c88230fe8bd9f8d39ca2ab69cd6282e9f949
treea28713512434fb5ed51b077db69e9edd916f8285
parent78d1c3949a6f85f64b31ee8ab8240392a67ca30e
lmb: Treat a region which is a subset as equal

In various cases logical memory blocks are coalesced; As a result doing
a strict check whether memory blocks are the same doesn't necessarily
work as a previous addition of a given block might have been merged into
a bigger block.

Fix this by considering a block is already registered if it's a pure
subset of one of the existing blocks.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
lib/lmb.c