projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f799b4
)
rust: auxiliary: fix remove_callback invariant comment
author
Alok Tiwari
<alok.a.tiwari@oracle.com>
Sat, 10 Jan 2026 11:48:13 +0000
(
03:48
-0800)
committer
Danilo 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
patch
|
blob
|
history
diff --git
a/rust/kernel/auxiliary.rs
b/rust/kernel/auxiliary.rs
index
f8273cf
..
d2890a2
100644
(file)
--- 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 `
prob
e_callback()`.
+ // INVARIANT: `adev` is valid for the duration of `
remov
e_callback()`.
let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() };
// SAFETY: `remove_callback` is only ever called after a successful call to