Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157960814
D53692.id166261.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
603 B
Referenced Files
None
Subscribers
None
D53692.id166261.diff
View Options
diff --git a/sys/amd64/vmm/amd/amdvi_hw.c b/sys/amd64/vmm/amd/amdvi_hw.c
--- a/sys/amd64/vmm/amd/amdvi_hw.c
+++ b/sys/amd64/vmm/amd/amdvi_hw.c
@@ -274,6 +274,8 @@
tail = (struct amdvi_cmd *)((uint8_t *)softc->cmd +
ctrl->cmd_tail);
+ if (tail != NULL)
+ memset(tail, 0, sizeof(*tail));
return (tail);
}
@@ -420,10 +422,6 @@
static void
amdvi_inv_domain(struct amdvi_softc *softc, uint16_t domain_id)
{
- struct amdvi_cmd *cmd __diagused;
-
- cmd = amdvi_get_cmd_tail(softc);
- KASSERT(cmd != NULL, ("Cmd is NULL"));
/*
* See section 3.3.3 of IOMMU spec rev 2.0, software note
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 27, 10:56 PM (11 h, 11 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33567765
Default Alt Text
D53692.id166261.diff (603 B)
Attached To
Mode
D53692: vmm: Initialize AMD IOMMU command buffers
Attached
Detach File
Event Timeline
Log In to Comment