aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mem2mem_testdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/mem2mem_testdev.c')
-rw-r--r--drivers/media/video/mem2mem_testdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c
index baf211b9f6ce..b161d26b0ddf 100644
--- a/drivers/media/video/mem2mem_testdev.c
+++ b/drivers/media/video/mem2mem_testdev.c
@@ -871,8 +871,10 @@ static int m2mtest_open(struct file *file)
871 871
872 ctx->m2m_ctx = v4l2_m2m_ctx_init(ctx, dev->m2m_dev, queue_init); 872 ctx->m2m_ctx = v4l2_m2m_ctx_init(ctx, dev->m2m_dev, queue_init);
873 if (IS_ERR(ctx->m2m_ctx)) { 873 if (IS_ERR(ctx->m2m_ctx)) {
874 int ret = PTR_ERR(ctx->m2m_ctx);
875
874 kfree(ctx); 876 kfree(ctx);
875 return PTR_ERR(ctx->m2m_ctx); 877 return ret;
876 } 878 }
877 879
878 atomic_inc(&dev->num_inst); 880 atomic_inc(&dev->num_inst);