Commit ee7aa9f8 authored by Henrik Kretzschmar's avatar Henrik Kretzschmar Committed by Mauro Carvalho Chehab

V4L/DVB (8750): V4L: check inval in video_register_device_index()

Better check the video_device pointer before using it.
Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ef0e3c26
......@@ -254,6 +254,9 @@ int video_register_device_index(struct video_device *vfd, int type, int nr,
int ret;
char *name_base;
if (vfd == NULL)
return -EINVAL;
if (vfd == NULL)
return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment