Преглед изворни кода

msm: camera: sync: Update size checking for fence cmd args

This change modifies the size checking for fence_cmd_args
when allocating the fence_input_info.

CRs-Fixed: 3350863
Change-Id: I16b2898e867d2af11e32c55cfb4e87316352b642
Signed-off-by: Haochen Yang <[email protected]>
Haochen Yang пре 2 година
родитељ
комит
e399dbcea6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/cam_sync/cam_sync.c

+ 1 - 1
drivers/cam_sync/cam_sync.c

@@ -1152,7 +1152,7 @@ static int cam_generic_fence_alloc_validate_input_info_util(
 
 	*fence_input_info = NULL;
 
-	if (fence_cmd_args->input_data_size !=
+	if (fence_cmd_args->input_data_size <
 		sizeof(struct cam_generic_fence_input_info)) {
 		CAM_ERR(CAM_SYNC, "Size is invalid expected: 0x%llx actual: 0x%llx",
 			sizeof(struct cam_generic_fence_input_info),