Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=123f8ef64e3996e06a930756b6b2cdede4b18da0
Commit:     123f8ef64e3996e06a930756b6b2cdede4b18da0
Parent:     e78dcf55520769471c66024b13df7e9e592436f4
Author:     Mauro Carvalho Chehab <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 6 20:11:35 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 00:02:54 2007 -0300

    V4L/DVB (6263): Fix buffer release code
    
    Release code should happen before the cleaning of map variable.
    
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/videobuf-vmalloc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/videobuf-vmalloc.c 
b/drivers/media/video/videobuf-vmalloc.c
index b2abfc9..fd059cd 100644
--- a/drivers/media/video/videobuf-vmalloc.c
+++ b/drivers/media/video/videobuf-vmalloc.c
@@ -84,9 +84,11 @@ videobuf_vm_close(struct vm_area_struct *vma)
 
                        if (mem->map != map)
                                continue;
+
+                       q->ops->buf_release(q,q->bufs[i]);
+
                        mem->map   = NULL;
                        q->bufs[i]->baddr = 0;
-                       q->ops->buf_release(q,q->bufs[i]);
                }
                mutex_unlock(&q->lock);
                kfree(map);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to