Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138029612
D28945.id84765.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
573 B
Referenced Files
None
Subscribers
None
D28945.id84765.diff
View Options
Index: sys/amd64/vmm/amd/ivrs_drv.c
===================================================================
--- sys/amd64/vmm/amd/ivrs_drv.c
+++ sys/amd64/vmm/amd/ivrs_drv.c
@@ -366,10 +366,11 @@
for (i = ivhd_count - 1 ; i > 0 ; i--){
if (ivhd_is_newer(&ivhd_hdrs[i-1]->Header,
&ivhd_hdrs[i]->Header)) {
- ivhd_hdrs[i-1] = ivhd_hdrs[i];
+ memmove(&ivhd_hdrs[i-1], &ivhd_hdrs[i],
+ sizeof(void *) * (ivhd_count - i));
ivhd_count--;
}
- }
+ }
ivhd_devs = malloc(sizeof(device_t) * ivhd_count, M_DEVBUF,
M_WAITOK | M_ZERO);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 29, 8:08 AM (3 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26323090
Default Alt Text
D28945.id84765.diff (573 B)
Attached To
Mode
D28945: ivrs_drv: Fix IVHDs with duplicated BaseAddress
Attached
Detach File
Event Timeline
Log In to Comment