Skip to content

Commit

Permalink
[media] tm6000: using an uninitialized variable in debug code
Browse files Browse the repository at this point in the history
dprintk() dereferences "ir".  I'm not sure why gcc doesn't complain
about this.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Dec 30, 2011
1 parent c6563cb commit b16ec6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/tm6000/tm6000-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b16ec6f

Please sign in to comment.