tiva/sock_can: correct mutex lock cycle

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-11-22 15:54:11 +08:00 committed by Xiang Xiao
parent 6bbb7c0046
commit e560111dbb

View File

@ -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;
}