Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}
	}