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 993d528..6ef4f52 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;
 }