[PATCH v22 1/5] rust: alloc: add `KBox::into_non_null`

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 17 14:22:58 UTC 2026


> Add a method to consume a `Box<T, A>` and return a `NonNull<T>`. This
> is a convenience wrapper around `Self::into_raw` for callers that need
> a `NonNull` pointer rather than a raw pointer.
> 
> Signed-off-by: Andreas Hindborg <a.hindborg at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261116-unique-ref-v22-0-12029383206d@kernel.org?part=1




More information about the Linux-security-module-archive mailing list