rust: devres: require T: Send for Devres
Due to calling Revocable::revoke() from Devres::devres_callback() T may be dropped from Devres::devres_callback() and hence must be Send. Fix this by adding the corresponding bound to Devres and DevresInner. Reported-by:Boqun Feng <boqun.feng@gmail.com> Closes: https://lore.kernel.org/lkml/aFzI5L__OcB9hqdG@Mac.home/ Fixes: 76c01ded ("rust: add devres abstraction") Reviewed-by:
Boqun Feng <boqun.fenng@gmail.com> Reviewed-by:
Benno Lossin <lossin@kernel.org> Link: https://lore.kernel.org/r/20250626132544.72866-1-dakr@kernel.org Signed-off-by:
Danilo Krummrich <dakr@kernel.org>
Loading
Please sign in to comment