usr.sbin/bhyve: unconditionally initialize the NVMe completion status
Follow-up work to improve the handling of unsupported/invalid opcodes is being developed by chuck@. Coverity CID: 1398928 Reviewed by: chuck Approved by: araujo, imp Differential Revision: https://reviews.freebsd.org/D20914
This commit is contained in:
parent
c99e4e6b8b
commit
e47c192236
@ -978,6 +978,7 @@ pci_nvme_handle_admin_cmd(struct pci_nvme_softc* sc, uint64_t value)
|
||||
|
||||
while (sqhead != atomic_load_acq_short(&sq->tail)) {
|
||||
cmd = &(sq->qbase)[sqhead];
|
||||
compl.cdw0 = 0;
|
||||
compl.status = 0;
|
||||
|
||||
switch (cmd->opc) {
|
||||
|
Loading…
Reference in New Issue
Block a user