]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6261): Cleans mem->vmalloc after vfree
authorMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 6 Sep 2007 21:55:07 +0000 (18:55 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 03:02:50 +0000 (00:02 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videobuf-vmalloc.c

index 993d5285e18e6dc607f59531f3494b95d75d66b9..6ef4f523689a7bafed58ff430a1072580235869e 100644 (file)
@@ -372,6 +372,7 @@ void videobuf_vmalloc_free (struct videobuf_buffer *buf)
        MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM);
 
        vfree(mem->vmalloc);
+       mem->vmalloc=NULL;
 
        return;
 }