From e560111dbb98e0500b8f6bd021377cc95b4eeaee Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 22 Nov 2023 15:54:11 +0800 Subject: [PATCH] tiva/sock_can: correct mutex lock cycle Signed-off-by: chao an --- arch/arm/src/tiva/common/tiva_sock_can.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/tiva/common/tiva_sock_can.c b/arch/arm/src/tiva/common/tiva_sock_can.c index 60ebd03e78..8c442d03dc 100644 --- a/arch/arm/src/tiva/common/tiva_sock_can.c +++ b/arch/arm/src/tiva/common/tiva_sock_can.c @@ -1263,6 +1263,7 @@ static int tivacan_alloc_fifo(struct net_driver_s *dev, int depth) if (free_fifo_idx < 0) { canwarn("Max number of filters allocated.\n"); + nxmutex_unlock(&canmod->fifo_lock); return -ENOMEM; }