Page MenuHomeFreeBSD

D24901.diff
No OneTemporary

D24901.diff

Index: head/usr.sbin/bhyve/pci_nvme.c
===================================================================
--- head/usr.sbin/bhyve/pci_nvme.c
+++ head/usr.sbin/bhyve/pci_nvme.c
@@ -1144,8 +1144,9 @@
case 0x02: /* list of 1024 active NSIDs > CDW1.NSID */
dest = vm_map_gpa(sc->nsc_pi->pi_vmctx, command->prp1,
sizeof(uint32_t) * 1024);
+ /* All unused entries shall be zero */
+ bzero(dest, sizeof(uint32_t) * 1024);
((uint32_t *)dest)[0] = 1;
- ((uint32_t *)dest)[1] = 0;
break;
case 0x03: /* list of NSID structures in CDW1.NSID, 4096 bytes */
if (command->nsid != 1) {

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 7, 8:37 AM (16 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17028727
Default Alt Text
D24901.diff (610 B)

Event Timeline