Skip to content

Commit 3964571

Browse files
committed
fixup! *RFL import: kernel::user_ptr
1 parent d26d32a commit 3964571

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/kernel/user_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use crate::{
99
error::code::*,
1010
error::Result,
1111
io_buffer::{IoBufferReader, IoBufferWriter},
12+
prelude::KVec,
1213
};
13-
use alloc::vec::Vec;
1414

1515
/// A reference to an area in userspace memory, which can be either
1616
/// read-only or read-write.
@@ -59,7 +59,7 @@ impl UserSlicePtr {
5959
///
6060
/// Returns `EFAULT` if the address does not currently point to
6161
/// mapped, readable memory.
62-
pub fn read_all(self) -> Result<Vec<u8>> {
62+
pub fn read_all(self) -> Result<KVec<u8>> {
6363
self.reader().read_all()
6464
}
6565

0 commit comments

Comments
 (0)