Skip to content

Commit

Permalink
MIPS: VPE: Select correct tc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hillf Danton authored and Ralf Baechle committed Sep 17, 2011
1 parent ddf2835 commit 9fbcbd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/vpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 9fbcbd7

Please sign in to comment.