diff options
Diffstat (limited to 'net/9p')
-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) | |||
222 | } | 222 | } |
223 | 223 | ||
224 | if (i >= ARRAY_SIZE(p9_mux_poll_tasks)) { | 224 | if (i >= ARRAY_SIZE(p9_mux_poll_tasks)) { |
225 | if (vptlast == NULL) | 225 | if (vptlast == NULL) { |
226 | mutex_unlock(&p9_mux_task_lock); | ||
226 | return -ENOMEM; | 227 | return -ENOMEM; |
228 | } | ||
227 | 229 | ||
228 | P9_DPRINTK(P9_DEBUG_MUX, "put in proc %d\n", i); | 230 | P9_DPRINTK(P9_DEBUG_MUX, "put in proc %d\n", i); |
229 | list_add(&m->mux_list, &vptlast->mux_list); | 231 | list_add(&m->mux_list, &vptlast->mux_list); |