Commit 40be261d authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

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: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarJan "Yenya" Kasprzak <kas@fi.muni.cz>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3c91c7ae
...@@ -907,6 +907,7 @@ static ssize_t cosa_write(struct file *file, ...@@ -907,6 +907,7 @@ static ssize_t cosa_write(struct file *file,
current->state = TASK_RUNNING; current->state = TASK_RUNNING;
chan->tx_status = 1; chan->tx_status = 1;
spin_unlock_irqrestore(&cosa->lock, flags); spin_unlock_irqrestore(&cosa->lock, flags);
up(&chan->wsem);
return -ERESTARTSYS; return -ERESTARTSYS;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment