We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbcd4b7 commit d6763e0Copy full SHA for d6763e0
rust/kernel/revocable.rs
@@ -231,6 +231,10 @@ impl<T> PinnedDrop for Revocable<T> {
231
///
232
/// The RCU read-side lock is held while the guard is alive.
233
pub struct RevocableGuard<'a, T> {
234
+ // This can't use the `&'a T` type because references that appear in function arguments must
235
+ // not become dangling during the execution of the function, which can happen if the
236
+ // `RevocableGuard` is passed as a function argument and then dropped during execution of the
237
+ // function.
238
data_ref: *const T,
239
_rcu_guard: rcu::Guard,
240
_p: PhantomData<&'a ()>,
0 commit comments