linux/drivers/media
Brandon Philips 49ee718ef5 V4L/DVB (6305): V4L: videobuf-core.c avoid NULL dereferences in videobuf-core
The return value of videobuf_alloc() is unchecked but this function will
return NULL on an error.  Check for NULL and make videobuf_reqbufs()
return the number of successfully allocated buffers.

Also, fix saa7146_video.c and bttv-driver.c to use this returned
buffer count.

Tested against the vivi driver.  Not tested against saa7146 or bt8xx
devices.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-10-10 00:03:20 -03:00
..
common V4L/DVB (6305): V4L: videobuf-core.c avoid NULL dereferences in videobuf-core 2007-10-10 00:03:20 -03:00
dvb V4L/DVB (6296): dib0700: add support for AverMedia DVB-T Express card 2007-10-10 00:03:15 -03:00
radio V4L/DVB (6246): GemTek Radio card - Control Word 2007-10-09 22:14:51 -03:00
video V4L/DVB (6305): V4L: videobuf-core.c avoid NULL dereferences in videobuf-core 2007-10-10 00:03:20 -03:00
Kconfig V4L/DVB (6299): dvb: Add dependencies for VIDEOBUF_DVB 2007-10-10 00:03:19 -03:00
Makefile V4L/DVB (5599): Use menuconfig objects II - DVB 2007-05-09 10:12:48 -03:00