V4L/DVB (8750): V4L: check inval in video_register_device_index()
authorHenrik Kretzschmar <henne@nachtwindheim.de>
Fri, 22 Aug 2008 19:41:03 +0000 (16:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:52 +0000 (09:36 -0200)
commitee7aa9f821b27674f36fc09413914b68f7ad97ca
treebf357d883b93153189119b715eed54c287f1368b
parentef0e3c26efe9c52de62b96fdad94de3ed70489d0
V4L/DVB (8750): V4L: check inval in video_register_device_index()

Better check the video_device pointer before using it.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c