nvme: fix intx handler to not dereference ioq during initialization
This was a regression from r293328, which deferred allocation of the controller's ioq array until after interrupts are enabled during boot. PR: 207432 Reported and tested by: Andy Carrel <wac@google.com> MFC after: 3 days Sponsored by: Intel
This commit is contained in:
@@ -810,7 +810,7 @@ nvme_ctrlr_intx_handler(void *arg)
|
||||
|
||||
nvme_qpair_process_completions(&ctrlr->adminq);
|
||||
|
||||
if (ctrlr->ioq[0].cpl)
|
||||
if (ctrlr->ioq && ctrlr->ioq[0].cpl)
|
||||
nvme_qpair_process_completions(&ctrlr->ioq[0]);
|
||||
|
||||
nvme_mmio_write_4(ctrlr, intmc, 1);
|
||||
|
||||
Reference in New Issue
Block a user