Re: [PATCH] sbitmap: reset alloc_hint to NULL after freeing

From: Andrew Morton

Date: Wed Dec 02 2026 - 14:29:43 EST


On Wed, 2 Dec 2026 10:18:54 -0500 thanhnguyentuan2007@xxxxxxxxx wrote:

> Thanks for pointing this out. Your patch is indeed more complete — I
> missed the dangling sbq->ws in sbitmap_queue_free() and the
> init_alloc_hint() failure path. I hadn't seen your patch before
> sending mine.
>
> I'll drop my patch.

fyi, I'm sitting on Wang's "lib/sbitmap: add KUnit test suite",
https://patch.msgid.link/20261016073253.520971-1-szwyb123@xxxxxxxxx

so as people are working on sbitmap, please consider updating that test
at an appropriate time.

Actually I'll send "lib/sbitmap: add KUnit test suite" to Jens right
now.