linux/rust/kernel/alloc
Hsiu Che Yu f497aae6de rust: alloc: fix Vec::extend_with SAFETY comment
Fix an incorrect operator in the SAFETY comment, changing `<` to `<=`,
since `Vec::reserve` guarantees capacity for exactly n additional elements,
so the equal case should be included.

Signed-off-by: Hsiu Che Yu <yu.whisper.personal@gmail.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Fixes: 2aac4cd7da ("rust: alloc: implement kernel `Vec` type")
Link: https://patch.msgid.link/18fc8eee2f057a6bfbcadae156d1d0b7c40d0077.1777111268.git.yu.whisper.personal@gmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-05-12 14:00:20 +02:00
..
allocator rust: alloc: simplify with NonNull::add() now that it is stable 2026-04-07 10:00:24 +02:00
kvec rust: kernel: mark as #[inline] all From::from()s for Error 2026-03-27 12:49:00 +01:00
allocator.rs Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
kbox.rs rust: remove RUSTC_HAS_COERCE_POINTEE and simplify code 2026-04-07 10:00:23 +02:00
kvec.rs rust: alloc: fix Vec::extend_with SAFETY comment 2026-05-12 14:00:20 +02:00
layout.rs drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00