diff options
author | Hillf Danton <dhillf@gmail.com> | 2011-08-04 22:38:31 +0800 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-09-17 02:37:03 +0200 |
commit | 9fbcbd7e1fa9acde67f3516f7aceef2c0d968a7b (patch) | |
tree | 6ce4f2899656a29cf8b7a7420cd44ddf9021c6a3 /arch/mips/kernel | |
parent | ddf28352b80c86754a6424e3a61e8bdf9213b3c7 (diff) |
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 <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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/vpe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 2cd50ad0d5c..3efcb065f78 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) */ |