diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2007-10-24 05:52:48 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-24 06:27:54 +0200 |
commit | 0ffdd581497286e8af529b0b39770c01eab15b30 (patch) | |
tree | d44904208bd5aa5c41d5b2d21c545feb3989dcb0 /net/9p/mux.c | |
parent | [PKT_SCHED]: Fix sch_prio.c build with CONFIG_NETDEVICES_MULTIQUEUE (diff) | |
download | linux-0ffdd581497286e8af529b0b39770c01eab15b30.tar.xz linux-0ffdd581497286e8af529b0b39770c01eab15b30.zip |
[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 <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/9p/mux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/9p/mux.c b/net/9p/mux.c index f14014793bed..c9f0805048e4 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); |