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

Commit 5ab55b35 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: smmu: Handle driver probe failure



As part of the driver probe if we fail to populate arm smmu
context banks this change will deallocate the memory for
these banks and set the context bank count to zero.

Change-Id: I642c69d2189954a21cb00b512ebf035c094efe68
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 9fdcb6bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3355,6 +3355,7 @@ static int cam_smmu_probe(struct platform_device *pdev)
		rc = cam_populate_smmu_context_banks(dev, CAM_ARM_SMMU);
		if (rc < 0) {
			CAM_ERR(CAM_SMMU, "Error: populating context banks");
			cam_smmu_release_cb(pdev);
			return -ENOMEM;
		}
		return rc;