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

Commit cc1d3e03 authored by Danny Kukawka's avatar Danny Kukawka Committed by Tomi Valkeinen
Browse files

OMAPDSS: VENC: fix NULL pointer dereference in DSS2 VENC sysfs debug attr on OMAP4



Commit ba02fa37 disabled the
venc driver registration on OMAP4. Since the driver never gets
probed/initialised your get a dereferenceed NULL pointer if you
try to get info from /sys/kernel/debug/omapdss/venc

Return info message about disabled venc if venc_dump_regs() gets called.

Signed-off-by: default avatarDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 1149c744
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -699,6 +699,11 @@ void venc_dump_regs(struct seq_file *s)
{
#define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, venc_read_reg(r))

	if (cpu_is_omap44xx()) {
		seq_printf(s, "VENC currently disabled on OMAP44xx\n");
		return;
	}

	if (venc_runtime_get())
		return;