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

Commit 8237ce6c authored by Alok Chauhan's avatar Alok Chauhan
Browse files

msm: camera: smmu: Protect create handle with mutex



mutex lock is missing while creating smmu handle. This
gives warning on mutext_unlock.

Added mutext lock for create smmu handle.

CRs-Fixed: 2671612
Change-Id: Ia1880c335ed9cacc4d6d34e9184599a4467efdcd
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 7ce0928a
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 =