Skip to content
Snippets Groups Projects
Commit 792b6d1d authored by QCTECMDR Service's avatar QCTECMDR Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "FROMLIST: iommu/arm-smmu-qcom: NULL pointer check for driver data"

parents daed8501 d2474516
No related branches found
No related tags found
No related merge requests found
......@@ -431,6 +431,8 @@ static int qcom_adreno_smmu_init_context(struct arm_smmu_domain *smmu_domain,
*/
priv = dev_get_drvdata(dev);
if (!priv)
return -ENODATA;
priv->cookie = smmu_domain;
priv->get_ttbr1_cfg = qcom_adreno_smmu_get_ttbr1_cfg;
priv->set_ttbr0_cfg = qcom_adreno_smmu_set_ttbr0_cfg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment