diff options
author | Michael Hunold <devnull@localhost> | 2003-12-18 11:20:36 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-12-18 11:20:36 +0000 |
commit | 8fdddba0acc423ea212232106c01297980843127 (patch) | |
tree | 01615fc88703d53ccab68e997f0fbd8fc13bd81e /linux/drivers/media/common | |
parent | 15d0c5d22e8d1fd758ae48fc7002179af5f0a3ce (diff) | |
download | mediapointer-dvb-s2-8fdddba0acc423ea212232106c01297980843127.tar.gz mediapointer-dvb-s2-8fdddba0acc423ea212232106c01297980843127.tar.bz2 |
- 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
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r-- | linux/drivers/media/common/saa7146_fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |