Skip to content

lib: Fix bitmap_cut() for overlaps, add test

Stefano Brivio lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib: Fix bitmap_cut() for partial overlapping caselib/bitmap.c+2 -20 replies
2/2lib: Add test for bitmap_cut()lib/test_bitmap.c+60 -04 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYury NorovAndy Shevchenko
SeriesR-b
1/2
2/2Co-authored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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.

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(-)
Signature · 1 line
2.26.2