V4L/DVB (8750): V4L: check inval in video_register_device_index()
authorHenrik Kretzschmar <henne@nachtwindheim.de>
Wed, 3 Sep 2008 20:11:53 +0000 (17:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 3 Sep 2008 21:37:11 +0000 (18:37 -0300)
commitf3b9f50ef771670b5d94c568241d6766691c6c18
tree86fd5e9b33f381d7e3f5a67641958f42d4462fee
parent5b5aff83a549c8f1e425e06d46ec951eae950b37
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