]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/media/IR/ir-keytable.c
V4L/DVB (13576): ir-common: fix an oops caused by the usage of an initialized drvdata
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Dec 2009 11:32:49 +0000 (08:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 16 Dec 2009 02:18:09 +0000 (00:18 -0200)
commit05395a3d86a928d374c970a0b35a6a711072f86c
tree72fbd7f0a6e21702628506faff5f88b57d43ed3f
parentb779974bdfcaec2a0eb13e44405baca07e0e92a3
V4L/DVB (13576): ir-common: fix an oops caused by the usage of an initialized drvdata

As reported by Sander Eikelenboom <linux@eikelemboon.it>:

> Tried to update my v4l-dvb modules today, but got a bug with my pinnacle
> card, seems to be related to the recent changes in the ir code.
>
> Dec  5 23:30:25 security kernel: [    5.735698] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
> Dec  5 23:30:25 security kernel: [    5.735716] IP: [<ffffffffa00997be>] :ir_common:ir_input_free+0x26/0x3e

Thanks-to: Sander Eikelenboom <linux@eikelemboon.it> for reporting and testing the fix.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/ir-keytable.c