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

Commit 87b685c6 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Razziell
Browse files

iommu: msm: Fix memset-elt-size warning

parent 580a9e73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -617,7 +617,7 @@ static int msm_iommu_ctx_parse_dt(struct platform_device *pdev,

	if (!of_get_property(pdev->dev.of_node, "qcom,iommu-sid-mask",
						&n_sid_mask)) {
		memset(ctx_drvdata->sid_mask, 0, MAX_NUM_SMR * sizeof(u32));
		memset(ctx_drvdata->sid_mask, 0, sizeof(ctx_drvdata->sid_mask));
		goto out;
	}