fix a mistake about nxmutex & sem

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2022-11-03 19:24:21 +08:00 committed by Xiang Xiao
parent b8d7194e66
commit be670c40d6
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}