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

Commit ef8de8d9 authored by Ghanim Fodi's avatar Ghanim Fodi Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: make sure ipa context exists when 11ad smmu prob



make sure ipa3_ctx is not NULL when smmu is being probed
for 11ad device

Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 9c19c7f2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7702,6 +7702,10 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
	}

	if (of_device_is_compatible(dev->of_node, "qcom,ipa-smmu-11ad-cb")) {
		if (ipa3_ctx == NULL) {
			IPAERR("ipa3_ctx was not initialized\n");
			return -EPROBE_DEFER;
		}
		cb = ipa3_get_smmu_ctx(IPA_SMMU_CB_11AD);
		cb->dev = dev;
		smmu_info.present[IPA_SMMU_CB_11AD] = true;