mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-18 15:53:37 +00:00
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:
parent
8f8cb840b0
commit
361e1fb408
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295944
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue