Skip to content

Commit

Permalink
MIPS: vpe.c: Fix null pointer dereference in print arguments.
Browse files Browse the repository at this point in the history
In the printk, the variable t euqals to NULL, so there is no t->index.
Use v->tc->index instead.

[[email protected]: Use opportunity of changing this line anyway to make
this line whitespacely correct.]

Signed-off-by: Cong Ding <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/4792/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
ccding authored and ralfbaechle committed Jan 16, 2013
1 parent 9931fac commit 3d2d032
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 @@ -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 {
Expand Down

0 comments on commit 3d2d032

Please sign in to comment.