summaryrefslogtreecommitdiff
path: root/drivers/staging/tm6000
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-06-07 15:32:27 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 17:06:01 (GMT)
commit758bb0b3e77d7876b76e48b4ac20f473be004421 (patch)
tree838cf834076a6d60917e5de8b049612f4e00b10a /drivers/staging/tm6000
parentd0669c872ff68cac5ab312569e716c12171440a9 (diff)
downloadlinux-758bb0b3e77d7876b76e48b4ac20f473be004421.tar.xz
V4L/DVB: tm6000: Be sure that the new buffer is empty
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/tm6000')
-rw-r--r--drivers/staging/tm6000/tm6000-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c
index 9a0b5a7..fd36b36 100644
--- a/drivers/staging/tm6000/tm6000-video.c
+++ b/drivers/staging/tm6000/tm6000-video.c
@@ -150,8 +150,6 @@ static inline void get_next_buf(struct tm6000_dmaqueue *dma_q,
/* Cleans up buffer - Usefull for testing for frame/URB loss */
outp = videobuf_to_vmalloc(&(*buf)->vb);
-// if (outp)
-// memset(outp, 0, (*buf)->vb.size);
return;
}
@@ -272,6 +270,7 @@ static int copy_streams(u8 *data, unsigned long len,
voutp = videobuf_to_vmalloc (&vbuf->vb);
if (!voutp)
return rc;
+ memset(voutp, 0, vbuf->vb.size);
}
linewidth = vbuf->vb.width << 1;
pos = ((line << 1) - field - 1) * linewidth +