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

Commit 69f0a80b authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Fix out of bound read access



The bool variable disable_htw passed to iommu_domain_set_attr(),
gets typecasted to int before being read in arm_smmu_domain_set_attr().
This results in an out of bound read access. Fix this issue by
defining disable_htw as an int.

Change-Id: I78b52c0b8c29d41948a8d621dada8866d904156b
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 35afb780
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -722,7 +722,7 @@ static int msm_vidc_setup_context_bank(struct context_bank_info *cb,
		struct device *dev)
{
	int rc = 0;
	bool disable_htw = true;
	int disable_htw = 1;
	int secure_vmid = VMID_INVAL;

	if (!dev || !cb) {