SAMV7: MCAN: fix missing unlock of device in mcan_txempty

This commit is contained in:
Frank Benkert 2016-06-01 10:38:19 -06:00 committed by Gregory Nutt
parent 2f974ffeaf
commit 90ccba1ad0
1 changed files with 1 additions and 0 deletions

View File

@ -2905,6 +2905,7 @@ static bool mcan_txempty(FAR struct can_dev_s *dev)
regval = mcan_getreg(priv, SAM_MCAN_TXFQS_OFFSET);
if (((regval & MCAN_TXFQS_TFQF) != 0))
{
mcan_dev_unlock(priv);
return false;
}