diff options
| author | Georgios Androutsopoulos <georgeandrout13@gmail.com> | 2026-09-08 16:31:57 -0400 |
|---|---|---|
| committer | Yury Norov <ynorov@nvidia.com> | 2026-10-06 12:15:40 -0400 |
| commit | 842c5beca0b369bb143b86d6ae63dbcd7c5f0988 (patch) | |
| tree | e258fb52a1599c4b2647fbcada875fcbd0e45693 /include/linux | |
| parent | 452a6d5b5e0556848a8c28428c8f86874ea4ee02 (diff) | |
| download | linux-next-842c5beca0b369bb143b86d6ae63dbcd7c5f0988.tar.gz linux-next-842c5beca0b369bb143b86d6ae63dbcd7c5f0988.zip | |
rust: id_pool: document panics in `find_unused_id` and `release_id`
`find_unused_id()` calls `Bitmap::next_zero_bit()` and `release_id()`
calls `Bitmap::clear_bit()`, both of which panic when
`CONFIG_RUST_BITMAP_HARDENED` is enabled and the index is out of
bounds. Neither `IdPool` method documents this.
Add the missing `# Panics` sections and state the bounds requirement
on `offset` and `id`.
Fixes: 2cdae413cd3e ("rust: add dynamic ID pool abstraction for bitmap")
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Georgios Androutsopoulos <georgeandrout13@gmail.com>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
