Эх сурвалжийг харах

msm: camera: smmu: Correct the handle check

Correct the check for comparing SMMU client names when
trying to create new  handles.

CRs-Fixed: 4653426
Change-Id: I04e0d75e87bf88f1ae05b7d61b6853ac6794d6eb
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 2 жил өмнө
parent
commit
ba3f945f46

+ 1 - 1
drivers/cam_smmu/cam_smmu_api.c

@@ -1190,7 +1190,7 @@ static inline void cam_smmu_update_multiregion_dev_id(
 	int k;
 	int k;
 
 
 	for (k = 0; k < cb_info->num_multi_regions; k++) {
 	for (k = 0; k < cb_info->num_multi_regions; k++) {
-		if (strcmp(cb_info->multi_region_clients[k], name)) {
+		if (!strcmp(cb_info->multi_region_clients[k], name)) {
 			*hdl |= ((k + 1) << MULTI_CLIENT_REGION_SHIFT);
 			*hdl |= ((k + 1) << MULTI_CLIENT_REGION_SHIFT);
 			CAM_DBG(CAM_SMMU, "%s got shared multi region handle 0x%x",
 			CAM_DBG(CAM_SMMU, "%s got shared multi region handle 0x%x",
 				name, *hdl);
 				name, *hdl);