Pass the reference of sem_buf to semop

This commit is contained in:
Yuke Peng
2024-08-25 15:35:34 +08:00
committed by Tate, Hongliang Tian
parent 83a4366a72
commit 547e6430ee
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ fn do_sys_semtimedop(
let sem_buf =
CurrentUserSpace::get().read_val::<SemBuf>(tsops + size_of::<SemBuf>() * i)?;
sem_op(sem_id, sem_buf, timeout, ctx)?;
sem_op(sem_id, &sem_buf, timeout, ctx)?;
}
Ok(SyscallReturn::Return(0))