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

Commit ce4e3d72 authored by Haritha Chintalapati's avatar Haritha Chintalapati Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: smmu: Avoid NULL dereference in cam_smmu_alloc_firmware"...

Merge "msm: camera: smmu: Avoid NULL dereference in cam_smmu_alloc_firmware" into camera-kernel.lnx.4.0
parents f7541e19 4e09bf5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3552,7 +3552,7 @@ static int cam_smmu_setup_cb(struct cam_context_bank_info *cb,
	/* create a virtual mapping */
	if (cb->io_support) {
		cb->domain = iommu_get_domain_for_dev(dev);
		if (IS_ERR(cb->domain)) {
		if (IS_ERR_OR_NULL(cb->domain)) {
			CAM_ERR(CAM_SMMU, "Error: create domain Failed");
			rc = -ENODEV;
			goto end;