diff options
author | Hillf Danton <dhillf@gmail.com> | 2011-08-04 16:38:31 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-09-17 02:37:03 +0200 |
commit | 9fbcbd7e1fa9acde67f3516f7aceef2c0d968a7b (patch) | |
tree | 6ce4f2899656a29cf8b7a7420cd44ddf9021c6a3 /arch/mips/kernel/vpe.c | |
parent | Linux 3.1-rc5 (diff) | |
download | linux-9fbcbd7e1fa9acde67f3516f7aceef2c0d968a7b.tar.xz linux-9fbcbd7e1fa9acde67f3516f7aceef2c0d968a7b.zip |
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/vpe.c')
-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 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) */ |