diff options
| author | Danilo Krummrich <[email protected]> | 2025-03-19 14:52:56 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-03-20 14:41:11 +0000 |
| commit | 51d0de7596a458096756c895cfed6bc4a7ecac10 (patch) | |
| tree | 91b4f448e9ce79dc9dc137bf18fbd645fc5178b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | rust: pci: require Send for Driver trait implementers (diff) | |
| download | kernel-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 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
