diff options
author | Ian Armstrong <ian@iarmst.demon.co.uk> | 2008-02-26 14:09:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-20 11:38:59 -0400 |
commit | 165e1213e13b49761f8b3fd9314701f83cf3db3a (patch) | |
tree | fa0d95213458762e1a3f1498fb0e582078d1f6c8 /drivers/media/video/ivtv/ivtv-driver.c | |
parent | c030f5e697af1127002a0aeffcd259f9bcff5471 (diff) |
V4L/DVB (7279): ivtv: Add missing sg_init_table()
If a dma transfer is attempted for either yuv or framebuffer output, a missing
sg_init_table() call causes a kernel BUG in scatterlist.h if CONFIG_DEBUG_SG
is set.
Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-driver.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 9d36ab999141..948ca35e7ee8 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -699,6 +699,9 @@ static int __devinit ivtv_init_struct1(struct ivtv *itv) | |||
699 | itv->vbi.in.type = V4L2_BUF_TYPE_SLICED_VBI_CAPTURE; | 699 | itv->vbi.in.type = V4L2_BUF_TYPE_SLICED_VBI_CAPTURE; |
700 | itv->vbi.sliced_in = &itv->vbi.in.fmt.sliced; | 700 | itv->vbi.sliced_in = &itv->vbi.in.fmt.sliced; |
701 | 701 | ||
702 | /* Init the sg table for osd/yuv output */ | ||
703 | sg_init_table(itv->udma.SGlist, IVTV_DMA_SG_OSD_ENT); | ||
704 | |||
702 | /* OSD */ | 705 | /* OSD */ |
703 | itv->osd_global_alpha_state = 1; | 706 | itv->osd_global_alpha_state = 1; |
704 | itv->osd_global_alpha = 255; | 707 | itv->osd_global_alpha = 255; |