From d60a2e816f81bf21e2ec62758da3dc972da73a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Fri, 5 Mar 2021 20:21:51 +0000 Subject: [PATCH] docs: Fix typo in mutex docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -EACCESS should be -EACCES Signed-off-by: Guðni Már Gilbert --- include/sys/mutex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sys/mutex.h b/include/sys/mutex.h index 29d7aee160d..88b3e7a44e1 100644 --- a/include/sys/mutex.h +++ b/include/sys/mutex.h @@ -98,7 +98,7 @@ __syscall int z_sys_mutex_kernel_unlock(struct sys_mutex *mutex); * @retval 0 Mutex locked. * @retval -EBUSY Returned without waiting. * @retval -EAGAIN Waiting period timed out. - * @retval -EACCESS Caller has no access to provided mutex address + * @retval -EACCES Caller has no access to provided mutex address * @retval -EINVAL Provided mutex not recognized by the kernel */ static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout) @@ -118,7 +118,7 @@ static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout) * thread. * * @param mutex Address of the mutex, which may reside in user memory - * @retval -EACCESS Caller has no access to provided mutex address + * @retval -EACCES Caller has no access to provided mutex address * @retval -EINVAL Provided mutex not recognized by the kernel or mutex wasn't * locked * @retval -EPERM Caller does not own the mutex