LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Unlock before return in p9_mux_poll_start
@ 2007-10-23 1:16 Roel Kluin
2007-10-24 3:52 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2007-10-23 1:16 UTC (permalink / raw)
To: lkml
commit 9f822afc65cc094c905901f9d92bf25042f9ed22
Author: Roel Kluin <12o3l@tiscali.nl>
Date: Tue Oct 23 03:15:55 2007 +0200
Unlock before return in p9_mux_poll_start
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
diff --git a/net/9p/mux.c b/net/9p/mux.c
index f140147..c9f0805 100644
--- a/net/9p/mux.c
+++ b/net/9p/mux.c
@@ -222,8 +222,10 @@ static int p9_mux_poll_start(struct p9_conn *m)
}
if (i >= ARRAY_SIZE(p9_mux_poll_tasks)) {
- if (vptlast == NULL)
+ if (vptlast == NULL) {
+ mutex_unlock(&p9_mux_task_lock);
return -ENOMEM;
+ }
P9_DPRINTK(P9_DEBUG_MUX, "put in proc %d\n", i);
list_add(&m->mux_list, &vptlast->mux_list);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Unlock before return in p9_mux_poll_start
2007-10-23 1:16 [PATCH] Unlock before return in p9_mux_poll_start Roel Kluin
@ 2007-10-24 3:52 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-10-24 3:52 UTC (permalink / raw)
To: 12o3l; +Cc: linux-kernel
From: Roel Kluin <12o3l@tiscali.nl>
Date: Tue, 23 Oct 2007 03:16:41 +0200
> commit 9f822afc65cc094c905901f9d92bf25042f9ed22
> Author: Roel Kluin <12o3l@tiscali.nl>
> Date: Tue Oct 23 03:15:55 2007 +0200
>
> Unlock before return in p9_mux_poll_start
>
> Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-24 3:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-23 1:16 [PATCH] Unlock before return in p9_mux_poll_start Roel Kluin
2007-10-24 3:52 ` 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).