提交 0ffdd581 编写于 作者: R Roel Kluin 提交者: David S. Miller

[9P]: Fix missing unlock before return in p9_mux_poll_start

Signed-off-by: NRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 00346226
...@@ -222,8 +222,10 @@ static int p9_mux_poll_start(struct p9_conn *m) ...@@ -222,8 +222,10 @@ static int p9_mux_poll_start(struct p9_conn *m)
} }
if (i >= ARRAY_SIZE(p9_mux_poll_tasks)) { if (i >= ARRAY_SIZE(p9_mux_poll_tasks)) {
if (vptlast == NULL) if (vptlast == NULL) {
mutex_unlock(&p9_mux_task_lock);
return -ENOMEM; return -ENOMEM;
}
P9_DPRINTK(P9_DEBUG_MUX, "put in proc %d\n", i); P9_DPRINTK(P9_DEBUG_MUX, "put in proc %d\n", i);
list_add(&m->mux_list, &vptlast->mux_list); list_add(&m->mux_list, &vptlast->mux_list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册