Re: [PATCH 0/2] lib: Fix bitmap_cut() for overlaps, add test

From: Andy Shevchenko
Date: Mon Jun 08 2020 - 06:13:04 EST


On Mon, Jun 08, 2020 at 11:13:27AM +0200, Stefano Brivio wrote:
> Patch 1/2 addresses the issue Yury reported with partially overlapping
> src and dst in bitmap_cut(), and 2/2 adds a test that covers basic
> functionality as well as this case.
>
>

FWIW, after addressing comments per test case,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

> Stefano Brivio (2):
> lib: Fix bitmap_cut() for partial overlapping case
> lib: Add test for bitmap_cut()
>
> lib/bitmap.c | 4 ++--
> lib/test_bitmap.c | 60 +++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 62 insertions(+), 2 deletions(-)
>
> --
> 2.26.2
>

--
With Best Regards,
Andy Shevchenko