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


The following commit(s) were added to refs/heads/master by this push:
     new a9ec6e9b3a arch/arm64: fix typo spin_lock_irqsave -> 
spin_unlock_irqrestore
a9ec6e9b3a is described below

commit a9ec6e9b3a51aa37bd733177d8cf28ce6155dae9
Author: chao an <[email protected]>
AuthorDate: Tue Jan 14 00:22:38 2025 +0800

    arch/arm64: fix typo spin_lock_irqsave -> spin_unlock_irqrestore
    
    should be spin_unlock_irqrestore
    
    Signed-off-by: chao an <[email protected]>
---
 arch/arm64/src/imx9/imx9_edma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/src/imx9/imx9_edma.c b/arch/arm64/src/imx9/imx9_edma.c
index 7669f6c35b..d610c5b26a 100644
--- a/arch/arm64/src/imx9/imx9_edma.c
+++ b/arch/arm64/src/imx9/imx9_edma.c
@@ -204,7 +204,7 @@ static struct imx9_edmatcd_s *imx9_tcd_alloc(void)
   tcd = (struct imx9_edmatcd_s *)sq_remfirst(&g_tcd_free);
   DEBUGASSERT(tcd != NULL);
 
-  spin_lock_irqsave(&g_edma.lock, flags);
+  spin_unlock_irqrestore(&g_edma.lock, flags);
   return tcd;
 }
 #endif

Reply via email to