]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (6751): V4L: Memory leak! Fix count in videobuf-vmalloc mmap
authorBrandon Philips <bphilips@suse.de>
Sun, 9 Dec 2007 02:05:53 +0000 (23:05 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 11 Dec 2007 20:08:22 +0000 (18:08 -0200)
commit801f06692ba6b65ba8eb45724a1cd6bdc46c8038
treed6352cce3e42354e2f142fc6ac21cfce9c8a5934
parentcfca2388a9c5f2f08058425063e69ae03d46cdea
V4L/DVB (6751): V4L: Memory leak!  Fix count in videobuf-vmalloc mmap

This is pretty serious bug.  map->count is never initialized after the
call to kmalloc making the count start at some random trash value.  The
end result is leaking videobufs.

Also, fix up the debug statements to print unsigned values.

Pushed to http://ifup.org/hg/v4l-dvb too

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videobuf-vmalloc.c