diff --git a/rust/kernel/dma.rs b/rust/kernel/dma.rs index 9d00f9c49f47..8cdc76043ee7 100644 --- a/rust/kernel/dma.rs +++ b/rust/kernel/dma.rs @@ -301,6 +301,10 @@ impl Drop for CoherentAllocation { } } +// SAFETY: It is safe to send a `CoherentAllocation` to another thread if `T` +// can be sent to another thread. +unsafe impl Send for CoherentAllocation {} + /// Reads a field of an item from an allocated region of structs. /// /// # Examples