]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7891): cx18/ivtv: fix open() kernel oops
authorAndy Walls <awalls@radix.net>
Mon, 12 May 2008 18:01:27 +0000 (15:01 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 14 May 2008 05:56:45 +0000 (02:56 -0300)
commit21991f1cc7a4eb1f8d3d6eaa599d4b606eaeb22d
tree58ba6654998600742c352f12ed5ed1967e1f598e
parentb4baf2932064aca74117feb39444bd3f41b8f8cc
V4L/DVB (7891): cx18/ivtv: fix open() kernel oops

Upon error conditions in cx18/ivtv_probe(), the code at the 'err:' label
leaves a NULL entry in cx18/ivtv_cards[]. This can cause a NULL pointer
de-reference in cx18/ivtv_v4l2_open() which is fixed by this patch.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx18/cx18-fileops.c
drivers/media/video/ivtv/ivtv-fileops.c