diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-30 14:57:28 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-30 16:49:45 -0200 |
commit | 2a887d27708a4f9f3b5ad8258f9e19a150b58f03 (patch) | |
tree | 0fe300566eaec5ddf4cad0dac77bd2ffa3218c31 /drivers/media/video/tm6000 | |
parent | 6740a932882f43056b8545e5b0b85511975d0a7c (diff) |
[media] tm6000: fix OOPS at tm6000_ir_int_stop() and tm6000_ir_int_start()
[ 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>
Diffstat (limited to 'drivers/media/video/tm6000')
-rw-r--r-- | drivers/media/video/tm6000/tm6000-input.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/tm6000/tm6000-input.c b/drivers/media/video/tm6000/tm6000-input.c index e3467d4245c..af4bcf5288a 100644 --- a/drivers/media/video/tm6000/tm6000-input.c +++ b/drivers/media/video/tm6000/tm6000-input.c @@ -377,6 +377,9 @@ 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); } @@ -384,6 +387,9 @@ 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); } |