fix a mistake about nxmutex & sem
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
b8d7194e66
commit
be670c40d6
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user