From: Sachin Kamat Date: Mon, 24 Sep 2012 05:17:45 +0000 (-0300) Subject: [media] mem2mem_testdev: Fix incorrect location of v4l2_m2m_release() X-Git-Tag: upstream/snapshot3+hdmi~4891^2~929 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7e13ef7e61f19ecf0b5d4b7d2483ae7b9f15513;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [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: Sachin Kamat Acked-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index d036375..43395df 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c @@ -1067,8 +1067,8 @@ static int m2mtest_probe(struct platform_device *pdev) return 0; - v4l2_m2m_release(dev->m2m_dev); err_m2m: + v4l2_m2m_release(dev->m2m_dev); video_unregister_device(dev->vfd); rel_vdev: video_device_release(vfd);