提交 b7e13ef7 编写于 作者: S Sachin Kamat 提交者: Mauro Carvalho Chehab

[media] mem2mem_testdev: Fix incorrect location of v4l2_m2m_release()

v4l2_m2m_release() was placed after the return statement and outside
any of the goto labels and hence was not getting executed under the
error exit path. This patch moves it under the exit path label.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ac0fe5ba
...@@ -1067,8 +1067,8 @@ static int m2mtest_probe(struct platform_device *pdev) ...@@ -1067,8 +1067,8 @@ static int m2mtest_probe(struct platform_device *pdev)
return 0; return 0;
v4l2_m2m_release(dev->m2m_dev);
err_m2m: err_m2m:
v4l2_m2m_release(dev->m2m_dev);
video_unregister_device(dev->vfd); video_unregister_device(dev->vfd);
rel_vdev: rel_vdev:
video_device_release(vfd); video_device_release(vfd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册