Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d2d0324 authored by Cong Ding's avatar Cong Ding Committed by Ralf Baechle
Browse files

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: default avatarCong 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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9931faca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {