aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-vmalloc.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-06 17:55:07 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 23:02:50 -0400
commitc520a4970c7e5f18275ef935372e56eabd6d0e44 (patch)
treee176eb422ea79fa047acf6e70b2e3f5c0352deab /drivers/media/video/videobuf-vmalloc.c
parent28318c72adc14952d05d8037d73cec852247791c (diff)
V4L/DVB (6261): Cleans mem->vmalloc after vfree
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videobuf-vmalloc.c')
-rw-r--r--drivers/media/video/videobuf-vmalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
index 993d5285e18e..6ef4f523689a 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)
372 MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM); 372 MAGIC_CHECK(mem->magic,MAGIC_VMAL_MEM);
373 373
374 vfree(mem->vmalloc); 374 vfree(mem->vmalloc);
375 mem->vmalloc=NULL;
375 376
376 return; 377 return;
377} 378}