Skip to content

Commit

Permalink
[media] tm6000: fix OOPS at tm6000_ir_int_stop() and tm6000_ir_int_st…
Browse files Browse the repository at this point in the history
…art()

[ 3755.608233] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[ 3755.616360] IP: [<ffffffffa03b80b7>] tm6000_ir_int_stop+0x10/0x1b [tm6000]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Nov 30, 2011
1 parent 6740a93 commit 2a887d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/media/video/tm6000/tm6000-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,19 @@ int tm6000_ir_int_start(struct tm6000_core *dev)
{
struct tm6000_IR *ir = dev->ir;

if (!ir)
return;

return __tm6000_ir_int_start(ir->rc);
}

void tm6000_ir_int_stop(struct tm6000_core *dev)
{
struct tm6000_IR *ir = dev->ir;

if (!ir || !ir->rc)
return;

__tm6000_ir_int_stop(ir->rc);
}

Expand Down

0 comments on commit 2a887d2

Please sign in to comment.