mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
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>
This commit is contained in:
parent
ddf28352b8
commit
9fbcbd7e1f
@ -192,7 +192,7 @@ static struct tc *get_tc(int index)
|
|||||||
}
|
}
|
||||||
spin_unlock(&vpecontrol.tc_list_lock);
|
spin_unlock(&vpecontrol.tc_list_lock);
|
||||||
|
|
||||||
return NULL;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* allocate a vpe and associate it with this minor (or index) */
|
/* allocate a vpe and associate it with this minor (or index) */
|
||||||
|
Loading…
Reference in New Issue
Block a user