From d320dfd20f95434e0ceb487ce0f203d2f8359ef1 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Wed, 18 Sep 2024 17:20:56 +0800 Subject: [PATCH] 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 --- drivers/rptun/rptun.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 1021e06d108..18cc2042ca2 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -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: