From: Hillf Danton Date: Thu, 4 Aug 2011 14:38:31 +0000 (+0800) Subject: MIPS: VPE: Select correct tc X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9fbcbd7e1fa9acde67f3516f7aceef2c0d968a7b;p=linux-beck.git 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: Hillf Danton To: LKML Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2692/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 2cd50ad0d5c6..3efcb065f78a 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c @@ -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) */