Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ffdd581 authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller
Browse files

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

parent 00346226
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);