]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: drm: Improve safety comment when using `Pin::into_inner_unchecked`
authorEwan Chorynski <ewan.chorynski@ik.me>
Sun, 28 Dec 2025 16:15:23 +0000 (17:15 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 6 Jan 2026 22:30:28 +0000 (23:30 +0100)
commit4348796233e736147e2e79c58784d0a9fb48867d
treec222ec0c037f88265d8194419c6f681e7b5dcd5a
parent7acc70476f14661149774ab88d3fe23d83ba4249
rust: drm: Improve safety comment when using `Pin::into_inner_unchecked`

The safety requirements for `Pin::into_inner_unchecked` state that the
returned pointer must be treated as pinned until it is dropped. Such a
guarantee is provided by the `ARef` type. This patch improves the safety
comment to better reflect this.

Signed-off-by: Ewan Chorynski <ewan.chorynski@ik.me>
Link: https://patch.msgid.link/20251228-drm-gem-safety-comment-v2-1-99bb861c3371@ik.me
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/drm/gem/mod.rs