mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 01:46:31 +00:00
@ -664,7 +664,6 @@ impl Syscall {
|
||||
Ok(pipefd) => Self::pipe(pipefd),
|
||||
},
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SYS_UNLINK_AT => {
|
||||
|
@ -327,7 +327,7 @@ impl<'a> UserBufferWriter<'a> {
|
||||
};
|
||||
return Ok(chunks);
|
||||
}
|
||||
|
||||
|
||||
fn convert_one_with_offset<T>(src: &mut [u8], offset: usize) -> Result<&mut T, SystemError> {
|
||||
if offset + core::mem::size_of::<T>() > src.len() {
|
||||
return Err(SystemError::EINVAL);
|
||||
|
Reference in New Issue
Block a user