rptun: BUG fix, should not destory the semaphore twice
This BUG is introduced in PR: https://github.com/apache/nuttx/pull/13172 Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
c76dfde744
commit
d320dfd20f
|
@ -1111,8 +1111,6 @@ int rptun_initialize(FAR struct rptun_dev_s *dev)
|
|||
return OK;
|
||||
|
||||
err_thread:
|
||||
nxsem_destroy(&priv->semtx);
|
||||
nxsem_destroy(&priv->semrx);
|
||||
rpmsg_unregister(name, &priv->rpmsg);
|
||||
|
||||
err_driver:
|
||||
|
|
Loading…
Reference in New Issue