linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mips: kernel/vpe.c: fix wrong KERN_WARNING message
@ 2013-01-14 17:23 Cong Ding
  2013-01-16 10:30 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Cong Ding @ 2013-01-14 17:23 UTC (permalink / raw)
  To: Ralf Baechle, David Howells, linux-mips, linux-kernel; +Cc: Cong Ding

in the printk, the variable t euqals to NULL, so there is no t->index, we use
v->tc->index instead.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
---
 arch/mips/kernel/vpe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index eec690a..3e20c33 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -705,7 +705,7 @@ static int vpe_run(struct vpe * v)
 
 			printk(KERN_WARNING
 			       "VPE loader: TC %d is already in use.\n",
-                               t->index);
+                               v->tc->index);
 			return -ENOEXEC;
 		}
 	} else {
-- 
1.7.9.5


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

end of thread, other threads:[~2013-01-16 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-14 17:23 [PATCH] mips: kernel/vpe.c: fix wrong KERN_WARNING message Cong Ding
2013-01-16 10:30 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).