Message ID | 20200505203603.278339-3-its@irrelevant.dk |
---|---|
State | New |
Headers | show |
Series | hw/block/nvme: fixes for interrupt behavior | expand |
diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 2b072bbb21e7..755ced8b03fb 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -646,7 +646,7 @@ static uint16_t nvme_create_cq(NvmeCtrl *n, NvmeCmd *cmd) trace_nvme_err_invalid_create_cq_vector(vector); return NVME_INVALID_IRQ_VECTOR | NVME_DNR; } - if (unlikely(vector > n->num_queues)) { + if (unlikely(vector > PCI_MSIX_FLAGS_QSIZE)) { trace_nvme_err_invalid_create_cq_vector(vector); return NVME_INVALID_IRQ_VECTOR | NVME_DNR; }