tiva/sock_can: correct mutex lock cycle
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
6bbb7c0046
commit
e560111dbb
@ -1263,6 +1263,7 @@ static int tivacan_alloc_fifo(struct net_driver_s *dev, int depth)
|
|||||||
if (free_fifo_idx < 0)
|
if (free_fifo_idx < 0)
|
||||||
{
|
{
|
||||||
canwarn("Max number of filters allocated.\n");
|
canwarn("Max number of filters allocated.\n");
|
||||||
|
nxmutex_unlock(&canmod->fifo_lock);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user