mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
V4L/DVB: tm6000: Be sure that the new buffer is empty
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
d0669c872f
commit
758bb0b3e7
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user