]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: auxiliary: fix remove_callback invariant comment
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sat, 10 Jan 2026 11:48:13 +0000 (03:48 -0800)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 13 Jan 2026 11:35:00 +0000 (12:35 +0100)
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>
rust/kernel/auxiliary.rs

index f8273cf165dc860722d9252702b758c35c869b65..d2890a2c543a816c69c97cbb58cbe0690c1764fa 100644 (file)
@@ -92,7 +92,7 @@ impl<T: Driver + 'static> Adapter<T> {
         // SAFETY: The auxiliary bus only ever calls the probe callback with a valid pointer to a
         // `struct auxiliary_device`.
         //
-        // INVARIANT: `adev` is valid for the duration of `probe_callback()`.
+        // INVARIANT: `adev` is valid for the duration of `remove_callback()`.
         let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() };
 
         // SAFETY: `remove_callback` is only ever called after a successful call to