git: 3934342846e6 - stable/13 - iommu_gas: zero fake on-stack map entry used in iommu_gas_remove_clip_left()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Jan 2024 00:42:41 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=3934342846e67940045c74a732fd3de124672efb
commit 3934342846e67940045c74a732fd3de124672efb
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-12-24 00:59:19 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-01-02 00:42:13 +0000
iommu_gas: zero fake on-stack map entry used in iommu_gas_remove_clip_left()
(cherry picked from commit cb1d664b0073232173072231cb386f0216ee596b)
---
sys/dev/iommu/iommu_gas.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/iommu/iommu_gas.c b/sys/dev/iommu/iommu_gas.c
index 25e13aad2291..e178acf60478 100644
--- a/sys/dev/iommu/iommu_gas.c
+++ b/sys/dev/iommu/iommu_gas.c
@@ -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);