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

Commit 9fbcbd7e authored by Hillf Danton's avatar Hillf Danton Committed by Ralf Baechle
Browse files

MIPS: VPE: Select correct tc



If we could find tc on the tc list for @index, the found tc should be returned.

Signed-off-by: default avatarHillf Danton <dhillf@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2692/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent ddf28352
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ static struct tc *get_tc(int index)
	}
	spin_unlock(&vpecontrol.tc_list_lock);

	return NULL;
	return res;
}

/* allocate a vpe and associate it with this minor (or index) */