saa7146: stop DMA before de-allocating DMA scatter/gather page buffers
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Feb 2010 23:23:46 +0000 (21:23 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 2 Feb 2010 00:02:03 +0000 (22:02 -0200)
Thanks-to: Hartmut <e9hack@googlemail.com> for pointing me the problem
and testing the fix.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/saa7146_video.c

index becbaadb3b7748eb616ec18e997bc767c68e3312..5ed75263340a91c966cdf58f0a4390efeeab3fd8 100644 (file)
@@ -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 = {
This page took 0.031115 seconds and 5 git commands to generate.