]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bitmap: add test_zero_nbits()
authorYury Norov <ynorov@nvidia.com>
Thu, 19 Mar 2026 00:43:48 +0000 (20:43 -0400)
committerYury Norov <ynorov@nvidia.com>
Tue, 24 Mar 2026 17:39:53 +0000 (13:39 -0400)
commit95d324fb1b48434f4c659e4c245c3bdeecdff22c
tree475263fc074b42a66c866466e637c23894c7d090
parent2a4d3706d864d19ba8772b7a5e74328ac5c1007d
bitmap: add test_zero_nbits()

In most real-life cases, 0-length bitmap provided by user is a sign of
an error. The API doesn't provide any guarantees on returned value, and
the bitmap pointers are not dereferenced.

Signed-off-by: Yury Norov <ynorov@nvidia.com>
lib/bitmap.c
lib/test_bitmap.c