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

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


The following commit(s) were added to refs/heads/master by this push:
     new e28f6d6e6e hwspinlock: Fix typo error(spin_lock_restore to 
spin_unlock_irqrestore)
e28f6d6e6e is described below

commit e28f6d6e6e2a140d73d1fdc96e0c6d597b99a5af
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Tue Jul 25 13:56:59 2023 +0800

    hwspinlock: Fix typo error(spin_lock_restore to spin_unlock_irqrestore)
    
    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>
---
 include/nuttx/hwspinlock/hwspinlock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/nuttx/hwspinlock/hwspinlock.h 
b/include/nuttx/hwspinlock/hwspinlock.h
index 0cef4f4cc5..f9b0539046 100644
--- a/include/nuttx/hwspinlock/hwspinlock.h
+++ b/include/nuttx/hwspinlock/hwspinlock.h
@@ -113,7 +113,7 @@ static inline void hwspin_unlock_restore(FAR struct 
hwspinlock_dev_s *dev,
                                          int id, irqstate_t flags)
 {
   hwspin_unlock(dev, id);
-  spin_lock_restore(&dev->lock, flags);
+  spin_unlock_irqrestore(&dev->lock, flags);
 }
 
 #ifdef __cplusplus

Reply via email to