mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
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:
@@ -1111,8 +1111,6 @@ int rptun_initialize(FAR struct rptun_dev_s *dev)
|
|||||||
return OK;
|
return OK;
|
||||||
|
|
||||||
err_thread:
|
err_thread:
|
||||||
nxsem_destroy(&priv->semtx);
|
|
||||||
nxsem_destroy(&priv->semrx);
|
|
||||||
rpmsg_unregister(name, &priv->rpmsg);
|
rpmsg_unregister(name, &priv->rpmsg);
|
||||||
|
|
||||||
err_driver:
|
err_driver:
|
||||||
|
|||||||
Reference in New Issue
Block a user