hw/nvme: clear aen mask on reset

The internally maintained AEN mask is not cleared on reset. Fix this.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
This commit is contained in:
Klaus Jensen 2022-05-12 11:30:55 +02:00
parent b9147a3aa1
commit 98836e8e01

View File

@ -6167,6 +6167,7 @@ static void nvme_ctrl_reset(NvmeCtrl *n, NvmeResetType rst)
}
n->aer_queued = 0;
n->aer_mask = 0;
n->outstanding_aers = 0;
n->qs_created = false;