[9P]: Fix missing unlock before return in p9_mux_poll_start
authorRoel Kluin <12o3l@tiscali.nl>
Wed, 24 Oct 2007 03:52:48 +0000 (20:52 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 24 Oct 2007 04:27:54 +0000 (21:27 -0700)
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/9p/mux.c

index f14014793bedb2fcbee870e84a6b0bde10be88fb..c9f0805048e44c0c1f6f6213aea6483a1c9c5aed 100644 (file)
@@ -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);