forked from Minki/linux
wan: cosa: drop chan->wsem on error path
The other paths all drop chan->wsem. This was found by a static checker (smatch). Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jan "Yenya" Kasprzak <kas@fi.muni.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3c91c7ae84
commit
40be261dfd
@ -907,6 +907,7 @@ static ssize_t cosa_write(struct file *file,
|
||||
current->state = TASK_RUNNING;
|
||||
chan->tx_status = 1;
|
||||
spin_unlock_irqrestore(&cosa->lock, flags);
|
||||
up(&chan->wsem);
|
||||
return -ERESTARTSYS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user