public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC patch] MIPS: select correct tc
@ 2011-08-04 14:38 Hillf Danton
  2011-08-04 15:07 ` Ralf Baechle
  2011-08-20 13:09 ` Ralf Baechle
  0 siblings, 2 replies; 4+ messages in thread
From: Hillf Danton @ 2011-08-04 14:38 UTC (permalink / raw)
  To: Ralf Baechle, LKML

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>
---
 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 dbb6b40..044b700 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) */

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-20 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04 14:38 [RFC patch] MIPS: select correct tc Hillf Danton
2011-08-04 15:07 ` Ralf Baechle
2011-08-05 13:17   ` Hillf Danton
2011-08-20 13:09 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox