From 8fdddba0acc423ea212232106c01297980843127 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Thu, 18 Dec 2003 11:20:36 +0000 Subject: - use videobuf_waiton() non-interruptible, so signals won't disturb the cleanup of the capture buffers. otherwise the buffers were not cleaned up correctly when a program was killed by CTRL-C, which led to memory corruption and system crashes when capturing --- linux/drivers/media/common/saa7146_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers') diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/common/saa7146_fops.c index 19c90b013..f29c6c2a7 100644 --- a/linux/drivers/media/common/saa7146_fops.c +++ b/linux/drivers/media/common/saa7146_fops.c @@ -12,7 +12,7 @@ void saa7146_dma_free(struct saa7146_dev *dev,struct saa7146_buf *buf) if (in_interrupt()) BUG(); - videobuf_waiton(&buf->vb,0,1); + videobuf_waiton(&buf->vb,0,0); videobuf_dma_pci_unmap(dev->pci, &buf->vb.dma); videobuf_dma_free(&buf->vb.dma); buf->vb.state = STATE_NEEDS_INIT; -- cgit v1.2.3