diff options
| author | Scott Long <scottl@FreeBSD.org> | 2017-07-31 16:55:56 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2017-07-31 16:55:56 +0000 |
| commit | 2068b2aa887b614dd248cbe6d50e84cb6517067d (patch) | |
| tree | 82d7eb70fb0cac8f7d3323e0f448d337c442adbd /sys/dev/mps | |
| parent | def6c0c3eed9abffb9bd676a6c2b11d9e27134f8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mps')
| -rw-r--r-- | sys/dev/mps/mps_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/mps/mps_pci.c b/sys/dev/mps/mps_pci.c index fbd8de01d8e8..bfa71cc6c95a 100644 --- a/sys/dev/mps/mps_pci.c +++ b/sys/dev/mps/mps_pci.c @@ -245,6 +245,7 @@ mps_pci_alloc_interrupts(struct mps_softc *sc) dev = sc->mps_dev; error = 0; + msgs = 0; if ((sc->disable_msix == 0) && ((msgs = pci_msix_count(dev)) >= MPS_MSI_COUNT)) @@ -252,7 +253,7 @@ mps_pci_alloc_interrupts(struct mps_softc *sc) if ((error != 0) && (sc->disable_msi == 0) && ((msgs = pci_msi_count(dev)) >= MPS_MSI_COUNT)) error = mps_alloc_msi(sc, MPS_MSI_COUNT); - else + if (error != 0) msgs = 0; sc->msi_msgs = msgs; |
