Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4740996f authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: smmu: Protect create handle with mutex" into camera-kernel.lnx.3.1

parents ea5de4ac 8237ce6c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -868,6 +868,7 @@ static int cam_smmu_create_add_handle_in_table(char *name,

			if (iommu_cb_set.cb_info[i].handle == HANDLE_INIT &&
				valid) {
				mutex_lock(&iommu_cb_set.cb_info[i].lock);
				/* make sure handle is unique */
				do {
					handle =