bhyve: Clear lid to 0 for internal device errors for NVMe AENs.

Reported by:	GCC
Reviewed by:	corvink, chuck, imp, markj
Differential Revision:	https://reviews.freebsd.org/D37487
This commit is contained in:
John Baldwin 2022-11-28 17:08:57 -08:00
parent 1d9e8a9e60
commit 47d6116239

View File

@ -969,6 +969,7 @@ pci_nvme_aen_process(struct pci_nvme_softc *sc)
EPRINTLN("%s unknown AEN notice type %u",
__func__, aen->event_data);
status = NVME_SC_INTERNAL_DEVICE_ERROR;
lid = 0;
break;
}
if ((PCI_NVME_AEI_NOTICE_MASK(aen->event_data) & mask) == 0)
@ -1003,6 +1004,7 @@ pci_nvme_aen_process(struct pci_nvme_softc *sc)
/* bad type?!? */
EPRINTLN("%s unknown AEN type %u", __func__, atype);
status = NVME_SC_INTERNAL_DEVICE_ERROR;
lid = 0;
break;
}