Skip to content

Commit

Permalink
[9P]: Fix missing unlock before return in p9_mux_poll_start
Browse files Browse the repository at this point in the history
Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Roel Kluin authored and David S. Miller committed Oct 24, 2007
1 parent 0034622 commit 0ffdd58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/9p/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ffdd58

Please sign in to comment.