diff mbox series

[PULL,15/15] hw/nvme: clear aen mask on reset

Message ID 20220623213442.67789-16-its@irrelevant.dk
State New
Headers show
Series [PULL,01/15] hw/nvme: Add support for SR-IOV | expand

Commit Message

Klaus Jensen June 23, 2022, 9:34 p.m. UTC
From: Klaus Jensen <k.jensen@samsung.com>

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>
---
 hw/nvme/ctrl.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
index 15d580a904ef..d349b3e42620 100644
--- a/hw/nvme/ctrl.c
+++ b/hw/nvme/ctrl.c
@@ -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;