summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-02-02 20:13:55 +0000
committerMichael Hunold <devnull@localhost>2004-02-02 20:13:55 +0000
commitb8652ebf107b39293f6f38fc864b346a74eaf7f0 (patch)
tree1b74786666ca1dc288883832742759b3bd790085 /linux
parentb0ba06041249ad3cf4a3a50f40cc2a6364351bda (diff)
downloadmediapointer-dvb-s2-b8652ebf107b39293f6f38fc864b346a74eaf7f0.tar.gz
mediapointer-dvb-s2-b8652ebf107b39293f6f38fc864b346a74eaf7f0.tar.bz2
- don't free resources while spinlock is held (might sleep)
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/common/saa7146_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c
index 955917d02..a07f3c00a 100644
--- a/linux/drivers/media/common/saa7146_video.c
+++ b/linux/drivers/media/common/saa7146_video.c
@@ -1418,8 +1418,8 @@ static void video_close(struct saa7146_dev *dev, struct file *file)
if( fh == vv->ov_data->fh ) {
spin_lock_irqsave(&dev->slock,flags);
saa7146_stop_preview(fh);
- saa7146_res_free(fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP);
spin_unlock_irqrestore(&dev->slock,flags);
+ saa7146_res_free(fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP);
}
}