Skip to content

Commit 3d2d032

Browse files
ccdingralfbaechle
authored andcommitted
MIPS: vpe.c: Fix null pointer dereference in print arguments.
In the printk, the variable t euqals to NULL, so there is no t->index. Use v->tc->index instead. [ralf@linux-mips.org: Use opportunity of changing this line anyway to make this line whitespacely correct.] Signed-off-by: Cong Ding <dinggnu@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/4792/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 9931fac commit 3d2d032

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/mips/kernel/vpe.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ static int vpe_run(struct vpe * v)
705705

706706
printk(KERN_WARNING
707707
"VPE loader: TC %d is already in use.\n",
708-
t->index);
708+
v->tc->index);
709709
return -ENOEXEC;
710710
}
711711
} else {

0 commit comments

Comments
 (0)