Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cd4765efdd816ac14075fc7d5adf489502e75e1e
Commit:     cd4765efdd816ac14075fc7d5adf489502e75e1e
Parent:     3bef5e4a1f73898dc8c8433f938d3a8b22f2be22
Author:     Mauro Carvalho Chehab <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 25 11:53:24 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 00:02:55 2007 -0300

    V4L/DVB (6265): Prevent for calling mmap_free without an allocated buffer
    
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
    http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981
    Reviewed-by: Ricardo Cerqueira <[EMAIL PROTECTED]>
---
 drivers/media/video/videobuf-core.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/videobuf-core.c 
b/drivers/media/video/videobuf-core.c
index 2565013..eb3b984 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -880,6 +880,9 @@ int videobuf_mmap_free(struct videobuf_queue *q)
        int i;
        int rc;
 
+       if (!q)
+               return 0;
+
        MAGIC_CHECK(q->int_ops->magic,MAGIC_QTYPE_OPS);
 
        rc  = CALL(q,mmap_free,q);
-
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