You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/03 15:43:02 UTC
[incubator-nuttx] branch master updated: fix a mistake about nxmutex & sem
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new be670c40d6 fix a mistake about nxmutex & sem
be670c40d6 is described below
commit be670c40d637e59a1f5e5dfd34f72f4fffa55707
Author: anjiahao <an...@xiaomi.com>
AuthorDate: Thu Nov 3 19:24:21 2022 +0800
fix a mistake about nxmutex & sem
Signed-off-by: anjiahao <an...@xiaomi.com>
---
arch/renesas/src/rx65n/rx65n_usbhost.c | 2 +-
fs/unionfs/fs_unionfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/renesas/src/rx65n/rx65n_usbhost.c b/arch/renesas/src/rx65n/rx65n_usbhost.c
index c30bd9434c..152d398fd7 100644
--- a/arch/renesas/src/rx65n/rx65n_usbhost.c
+++ b/arch/renesas/src/rx65n/rx65n_usbhost.c
@@ -8363,7 +8363,7 @@ struct usbhost_connection_s *rx65n_usbhost_initialize(int controller)
/* Initialize semaphores & mutex */
nxsem_init(&priv->pscsem, 0, 0);
- nxmutex_lock(&priv->lock);
+ nxmutex_init(&priv->lock);
#ifndef CONFIG_USBHOST_INT_DISABLE
priv->ininterval = MAX_PERINTERVAL;
diff --git a/fs/unionfs/fs_unionfs.c b/fs/unionfs/fs_unionfs.c
index 657becdcaf..d042abdbd0 100644
--- a/fs/unionfs/fs_unionfs.c
+++ b/fs/unionfs/fs_unionfs.c
@@ -2679,7 +2679,7 @@ errout_with_fs1:
inode_release(ui->ui_fs[0].um_node);
errout_with_uinode:
- nxmutex_lock(&ui->ui_lock);
+ nxmutex_destroy(&ui->ui_lock);
kmm_free(ui);
return ret;
}