From: Mauro Carvalho Chehab Date: Thu, 6 Sep 2007 21:55:07 +0000 (-0300) Subject: V4L/DVB (6261): Cleans mem->vmalloc after vfree X-Git-Tag: v2.6.24-rc1~1463^2~43 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c520a4970c7e5f18275ef935372e56eabd6d0e44;p=linux-2.6-omap-h63xx.git V4L/DVB (6261): Cleans mem->vmalloc after vfree Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c index 993d5285e18..6ef4f523689 100644 --- a/drivers/media/video/videobuf-vmalloc.c +++ b/drivers/media/video/videobuf-vmalloc.c @@ -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; }