Skip to content

list: add missing empty list check to list_cut_before()

Ziran Zhang linux-kselftest lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v11 patch 4 repliesSuperseded

Changes in v3 from the cover letter

- Elaborate the rationale in the commit message, as requested by Andy Shevchenko.
- Add Reviewed-by from Andy Shevchenko to patch 2/2.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2list: add missing empty list check to list_cut_before()include/linux/list.h+5 -01 reply
2/2list: add KUnit test for list_cut_before() empty list caselib/tests/list-test.c+18 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/2R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] list: add missing empty list check to list_cut_before()

v3:
- Elaborate the rationale in the commit message, as requested by Andy Shevchenko.
- Add Reviewed-by from Andy Shevchenko to patch 2/2.

v2:
- Add a KUnit test case as requested by Andy Shevchenko.
- Patch 1 adds the missing list_empty() guard, patch 2 adds the test case.

v1:
- https://lore.kernel.org/all/[email protected]/

Tested with:
tools/testing/kunit/kunit.py run --kernel_args=kunit.filter_glob='list-kunit-test'

Test result:
[PASSED] list_test_list_cut_before_empty
Testing complete. Ran 40 tests: passed: 40

Ziran Zhang (2):
list: add missing empty list check to list_cut_before()
list: add KUnit test for list_cut_before() empty list case

 include/linux/list.h  |  5 +++++
 lib/tests/list-test.c | 18 ++++++++++++++++++
 2 files changed, 23 insertions(+)
Signature · 1 line
2.51.0