Explorar o código

msm: camera: sync: correcting atomic read operation

This change rectifies the reading of atomic variable.

CRs-Fixed: 2591537
Change-Id: I13c289bc00a07d5c2289e2e3f13245bbc521d4ee
Signed-off-by: Alok Pandey <[email protected]>
Alok Pandey %!s(int64=5) %!d(string=hai) anos
pai
achega
cc79abb0a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/cam_sync/cam_sync.c

+ 1 - 1
drivers/cam_sync/cam_sync.c

@@ -38,7 +38,7 @@ static void cam_sync_print_fence_table(void)
 			sync_dev->sync_table[idx].name,
 			sync_dev->sync_table[idx].type,
 			sync_dev->sync_table[idx].state,
-			sync_dev->sync_table[idx].ref_cnt);
+			atomic_read(&sync_dev->sync_table[idx].ref_cnt));
 		spin_unlock_bh(&sync_dev->row_spinlocks[idx]);
 	}
 }