Browse Source

msm: camera: sync: Add support for putting dma fence

This change will put dma fence no matter what the value
of row->ext_dma_fence is when closing it.

CRs-Fixed: 3423230
Change-Id: Iaf3faad970ad226bebaed41305f70afa9e5858f7
Signed-off-by: Haochen Yang <[email protected]>
Haochen Yang 2 years ago
parent
commit
18b9847377
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/cam_sync/cam_sync_dma_fence.c

+ 1 - 2
drivers/cam_sync/cam_sync_dma_fence.c

@@ -794,9 +794,8 @@ void cam_dma_fence_close(void)
 						g_cam_dma_fence_dev->monitor_data,
 						CAM_FENCE_OP_SIGNAL);
 				__cam_dma_fence_signal_fence(row->fence, -EADV);
-				dma_fence_put(row->fence);
 			}
-
+			dma_fence_put(row->fence);
 			memset(row, 0, sizeof(struct cam_dma_fence_row));
 			clear_bit(i, g_cam_dma_fence_dev->bitmap);
 		}