Commit 4195ec7a authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Mauro Carvalho Chehab

[media] vivi: Add return code check at vb2_queue_init()

This function returns an integer and it's mandatory
to check the return code.
Signed-off-by: default avatarEzequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 47054a35
...@@ -1314,7 +1314,9 @@ static int __init vivi_create_instance(int inst) ...@@ -1314,7 +1314,9 @@ static int __init vivi_create_instance(int inst)
q->ops = &vivi_video_qops; q->ops = &vivi_video_qops;
q->mem_ops = &vb2_vmalloc_memops; q->mem_ops = &vb2_vmalloc_memops;
vb2_queue_init(q); ret = vb2_queue_init(q);
if (ret)
goto unreg_dev;
mutex_init(&dev->mutex); mutex_init(&dev->mutex);
......
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