mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
Pass the reference of sem_buf to semop
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
83a4366a72
commit
547e6430ee
@ -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))
|
||||
|
Reference in New Issue
Block a user