]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11991): buf-core.c: add pointer check
authorFigo.zhang <figo1802@gmail.com>
Wed, 3 Jun 2009 02:01:04 +0000 (23:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 22:07:51 +0000 (19:07 -0300)
commitfbbe19b73ba7bd73712e48a00b024c5385219478
treec840d7f3cb867b5cd382cb83d54c6006b8d9d02a
parent5ad557f1fc4d5863556b21f942853dc4aa59bb1d
V4L/DVB (11991): buf-core.c: add pointer check

add poiter check for videobuf_queue_core_init().

any guys who write a v4l driver, pass a NULL pointer or a non-inintial
pointer to the first parameter such as videobuf_queue_sg_init() , it
would be crashed.

Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-core.c