From: Roel Kluin <12o3l@tiscali.nl> Date: Wed, 24 Oct 2007 03:52:48 +0000 (-0700) Subject: [9P]: Fix missing unlock before return in p9_mux_poll_start X-Git-Tag: v2.6.24-rc2~139^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ffdd581497286e8af529b0b39770c01eab15b30;p=platform%2Fkernel%2Flinux-3.10.git [9P]: Fix missing unlock before return in p9_mux_poll_start Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: David S. Miller --- 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);