aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_driver_platform.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2025-03-19 14:52:56 +0000
committerGreg Kroah-Hartman <[email protected]>2025-03-20 14:41:11 +0000
commit51d0de7596a458096756c895cfed6bc4a7ecac10 (patch)
tree91b4f448e9ce79dc9dc137bf18fbd645fc5178b1 /samples/rust/rust_driver_platform.rs
parentrust: pci: require Send for Driver trait implementers (diff)
downloadkernel-51d0de7596a458096756c895cfed6bc4a7ecac10.tar.gz
kernel-51d0de7596a458096756c895cfed6bc4a7ecac10.zip
rust: platform: require Send for Driver trait implementers
The instance of Self, returned and created by Driver::probe() is dropped in the bus' remove() callback. Request implementers of the Driver trait to implement Send, since the remove() callback is not guaranteed to run from the same thread as probe(). Fixes: 683a63befc73 ("rust: platform: add basic platform device / driver abstractions") Cc: stable <[email protected]> Reported-by: Alice Ryhl <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Danilo Krummrich <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions