From: Mauro Carvalho Chehab Date: Mon, 1 Feb 2010 23:23:46 +0000 (-0200) Subject: saa7146: stop DMA before de-allocating DMA scatter/gather page buffers X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ba9e9f3c08a5b58c1ffacf0cc6fb703ab0fa55ff;p=deliverable%2Flinux.git saa7146: stop DMA before de-allocating DMA scatter/gather page buffers Thanks-to: Hartmut for pointing me the problem and testing the fix. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c index becbaadb3b77..5ed75263340a 100644 --- a/drivers/media/common/saa7146_video.c +++ b/drivers/media/common/saa7146_video.c @@ -1333,9 +1333,9 @@ static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb) DEB_CAP(("vbuf:%p\n",vb)); - release_all_pagetables(dev, buf); - saa7146_dma_free(dev,q,buf); + + release_all_pagetables(dev, buf); } static struct videobuf_queue_ops video_qops = {