From: Dan Carpenter Date: Sun, 29 Nov 2009 06:02:55 +0000 (+0000) Subject: wan: cosa: drop chan->wsem on error path X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=40be261dfd8bfba4baeff40168d44a6a4450ace1;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Jan "Yenya" Kasprzak Signed-off-by: David S. Miller --- diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index e2c33c06190b..8e25ca7080c7 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -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; } }