Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: dma: remove incorrect safety documentation

Removes a safety requirement that incorrectly states callers must
ensure the device does not access memory while the returned slice
is live, as this method doesn't return a slice.

Fixes: d37a39f607c4 ("rust: dma: add as_slice/write functions for CoherentAllocation")
Signed-off-by: Yilin Chen <1479826151@qq.com>
Link: https://patch.msgid.link/tencent_5195C0324923A2B67DEF8AE4B8E139BCB105@qq.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Yilin Chen and committed by
Danilo Krummrich
68ece1e2 2f4ca874

-2
-2
rust/kernel/dma.rs
··· 532 532 /// 533 533 /// # Safety 534 534 /// 535 - /// * Callers must ensure that the device does not read/write to/from memory while the returned 536 - /// slice is live. 537 535 /// * Callers must ensure that this call does not race with a read or write to the same region 538 536 /// that overlaps with this write. 539 537 ///