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

Commit b16ec6f7 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

[media] tm6000: using an uninitialized variable in debug code



dprintk() dereferences "ir".  I'm not sure why gcc doesn't complain
about this.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c6563cbf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -408,13 +408,13 @@ int tm6000_ir_init(struct tm6000_core *dev)
	if (!dev->ir_codes)
		return 0;

	dprintk(2, "%s\n",__func__);

	ir = kzalloc(sizeof(*ir), GFP_ATOMIC);
	rc = rc_allocate_device();
	if (!ir || !rc)
		goto out;

	dprintk(2, "%s\n", __func__);

	/* record handles to ourself */
	ir->dev = dev;
	dev->ir = ir;