saa7146: stop DMA before de-allocating DMA scatter/gather page buffers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, February 3, 2010 - 5:59 pm

Gitweb:     http://git.kernel.org/linus/ba9e9f3c08a5b58c1ffacf0cc6fb703ab0fa55ff
Commit:     ba9e9f3c08a5b58c1ffacf0cc6fb703ab0fa55ff
Parent:     7415c7602ddb14a9a9c39bc8c38afa667092a527
Author:     Mauro Carvalho Chehab <mchehab@redhat.com>
AuthorDate: Mon Feb 1 21:23:46 2010 -0200
Committer:  Mauro Carvalho Chehab <mchehab@redhat.com>
CommitDate: Mon Feb 1 22:02:03 2010 -0200

    saa7146: stop DMA before de-allocating DMA scatter/gather page buffers
    
    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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c
index becbaad..5ed7526 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 = {
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
saa7146: stop DMA before de-allocating DMA scatter/gather ..., Linux Kernel Mailing ..., (Wed Feb 3, 5:59 pm)