Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: auxiliary: fix remove_callback invariant comment

Correct copy-paste errors where remove_callback safety invariants
incorrectly referenced probe_callback().

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260110114817.2312828-1-alok.a.tiwari@oracle.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Alok Tiwari and committed by
Danilo Krummrich
601cd264 8f799b4e

+1 -1
+1 -1
rust/kernel/auxiliary.rs
··· 92 92 // SAFETY: The auxiliary bus only ever calls the probe callback with a valid pointer to a 93 93 // `struct auxiliary_device`. 94 94 // 95 - // INVARIANT: `adev` is valid for the duration of `probe_callback()`. 95 + // INVARIANT: `adev` is valid for the duration of `remove_callback()`. 96 96 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() }; 97 97 98 98 // SAFETY: `remove_callback` is only ever called after a successful call to