Page MenuHomeFreeBSD

D28945.id84765.diff
No OneTemporary

D28945.id84765.diff

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

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)

Event Timeline