diff options
| author | Alok Tiwari <alok.a.tiwari@oracle.com> | 2026-01-10 03:48:13 -0800 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-01-13 12:35:00 +0100 |
| commit | 601cd264a31d198d5710846c9b53dfa92f1c4268 (patch) | |
| tree | 30d02a708c7765273786d87e945da455ce9bd495 /rust/kernel/auxiliary.rs | |
| parent | 8f799b4e8cc0cf926019e40405dc3eab330ac643 (diff) | |
| download | linux-601cd264a31d198d5710846c9b53dfa92f1c4268.tar.gz linux-601cd264a31d198d5710846c9b53dfa92f1c4268.tar.bz2 linux-601cd264a31d198d5710846c9b53dfa92f1c4268.zip | |
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>
Diffstat (limited to 'rust/kernel/auxiliary.rs')
| -rw-r--r-- | rust/kernel/auxiliary.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/auxiliary.rs b/rust/kernel/auxiliary.rs index f8273cf165dc..d2890a2c543a 100644 --- a/rust/kernel/auxiliary.rs +++ b/rust/kernel/auxiliary.rs @@ -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 |
