diff options
author | Hillf Danton <dhillf@gmail.com> | 2011-08-04 14:38:31 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-09-17 00:37:03 (GMT) |
commit | 9fbcbd7e1fa9acde67f3516f7aceef2c0d968a7b (patch) | |
tree | 6ce4f2899656a29cf8b7a7420cd44ddf9021c6a3 | |
parent | ddf28352b80c86754a6424e3a61e8bdf9213b3c7 (diff) | |
download | linux-fsl-qoriq-9fbcbd7e1fa9acde67f3516f7aceef2c0d968a7b.tar.xz |
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>
-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 2cd50ad..3efcb06 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) */ |