Skip to content

Commit

Permalink
tiva/sock_can: correct mutex lock cycle
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao committed Nov 22, 2023
1 parent 7ccf70d commit a7a1294
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/src/tiva/common/tiva_sock_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a7a1294

Please sign in to comment.