[COMMON] fimc-is2: fixed a bug for full_otf recovery shot
authorEunyoung Lee <ey470.lee@samsung.com>
Mon, 5 Feb 2018 02:06:34 +0000 (11:06 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:43:25 +0000 (17:43 +0900)
Change-Id: I7d9e3d0ce4df2b696e49870cfe534d1e66557d4e
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c

index a1fac0009c19ce0ca9c32ecc270350e8dc1274b4..ff8971af86b05dca763d599f5da4065e2e35aaee 100644 (file)
@@ -3240,9 +3240,10 @@ int fimc_is_hardware_recovery_shot(struct fimc_is_hardware *hardware, u32 instan
        frame = get_frame(framemgr, FS_HW_REQUEST);
        if (!frame) {
                ret = make_internal_shot(hw_ip, instance, recov_fcount, &frame, framemgr);
-               framemgr_x_barrier_common(framemgr, 0, flags);
-               if (ret)
+               if (ret) {
+                       framemgr_x_barrier_common(framemgr, 0, flags);
                        goto exit;
+               }
        }
        framemgr_x_barrier_common(framemgr, 0, flags);