diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index c396da12ad89afd0dcb71c5b885a57b7325e1403..b366b050a3dd487473345d1ddaee013b2740513f 100644 --- a/drivers/media/platform/vivi.c +++ b/drivers/media/platform/vivi.c @@ -1314,7 +1314,9 @@ static int __init vivi_create_instance(int inst) q->ops = &vivi_video_qops; q->mem_ops = &vb2_vmalloc_memops; - vb2_queue_init(q); + ret = vb2_queue_init(q); + if (ret) + goto unreg_dev; mutex_init(&dev->mutex);