Re: [PATCH v2 2/2] list: add KUnit test for list_cut_before() empty list case
From: Andy Shevchenko
Date: Fri Sep 18 2026 - 03:41:11 EST
On Thu, Sep 17, 2026 at 08:55:05PM +0800, Ziran Zhang wrote:
> Add a test case covering list_cut_before() with an empty head
> and an entry not on the list. Without the empty list guard,
> the call would corrupt the head list.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
(New test cases, when they are desired, have always a green light!)
--
With Best Regards,
Andy Shevchenko