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

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2023-12-24 02:59:19 +02:00
parent 733da1eb94
commit cb1d664b00

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);