netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] drop chan->wsem on error path
@ 2009-11-29 16:02 Dan Carpenter
  2009-11-30  7:44 ` Jan Kasprzak
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2009-11-29 16:02 UTC (permalink / raw)
  To: kas; +Cc: netdev

The other paths all drop chan->wsem.  This was found by a static
checker (smatch).

Signed-off-by: Dan Carpenter <error27@gmail.com>

--- orig/drivers/net/wan/cosa.c	2009-11-29 16:38:42.000000000 +0200
+++ devel/drivers/net/wan/cosa.c	2009-11-29 16:43:39.000000000 +0200
@@ -907,6 +907,7 @@ static ssize_t cosa_write(struct file *f
 			current->state = TASK_RUNNING;
 			chan->tx_status = 1;
 			spin_unlock_irqrestore(&cosa->lock, flags);
+			up(&chan->wsem);
 			return -ERESTARTSYS;
 		}
 	}

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-30  8:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-29 16:02 [patch] drop chan->wsem on error path Dan Carpenter
2009-11-30  7:44 ` Jan Kasprzak
2009-11-30  8:07   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).