You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/26 02:24:12 UTC

[nuttx] 01/05: wireless/ieee802154: rename label pointed to exit with mutex held

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit a8f4d8447f8ced74665d3c152ab8e698b78a3ac0
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Wed Jan 25 22:56:25 2023 +0200

    wireless/ieee802154: rename label pointed to exit with mutex held
    
    Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
 wireless/ieee802154/mac802154_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wireless/ieee802154/mac802154_device.c b/wireless/ieee802154/mac802154_device.c
index 3dea80b768..78322dbc31 100644
--- a/wireless/ieee802154/mac802154_device.c
+++ b/wireless/ieee802154/mac802154_device.c
@@ -274,7 +274,7 @@ static int mac802154dev_close(FAR struct file *filep)
     {
       wlerr("ERROR: Failed to find open entry\n");
       ret = -ENOENT;
-      goto errout_with_exclsem;
+      goto errout_with_lock;
     }
 
   /* Remove the structure from the device */
@@ -315,7 +315,7 @@ static int mac802154dev_close(FAR struct file *filep)
 
   ret = OK;
 
-errout_with_exclsem:
+errout_with_lock:
   nxmutex_unlock(&dev->md_lock);
   return ret;
 }