iommu_gas: zero fake on-stack map entry used in iommu_gas_remove_clip_left()

(cherry picked from commit cb1d664b0073232173072231cb386f0216ee596b)
This commit is contained in:
Konstantin Belousov 2023-12-24 02:59:19 +02:00
parent b86d839af9
commit edaece2f7e

View file

@ -655,6 +655,7 @@ iommu_gas_remove_clip_left(struct iommu_domain *domain, iommu_gaddr_t start,
* asserted that start is below domain end, entry should
* exist. Then clip it if needed.
*/
bzero(&fentry, sizeof(fentry));
fentry.start = start + 1;
fentry.end = start + 1;
entry = RB_NFIND(iommu_gas_entries_tree, &domain->rb_root, &fentry);