diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2017-03-21 08:56:13 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2017-03-21 08:56:13 +0000 |
| commit | abdc2e314b6d79cf7639a2d370600d9a0d5f919c (patch) | |
| tree | a79e7e0da451370052a9d9022d99a5531088fa6d /sys/dev/isp/isp_pci.c | |
| parent | cc65eb4e792a203a8b4a17b0e3af7831e5044eca (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
| -rw-r--r-- | sys/dev/isp/isp_pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 9ca47866b86cb..6210e6dd64a60 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -2054,6 +2054,7 @@ isp_pci_irqsetup(ispsoftc_t *isp) if (isp->isp_nirq > 0) return (0); + ISP_UNLOCK(isp); if (ISP_CAP_MSIX(isp)) { max_irq = min(ISP_MAX_IRQS, IS_26XX(isp) ? 3 : 2); pcs->msicount = imin(pci_msix_count(dev), max_irq); @@ -2094,6 +2095,7 @@ isp_pci_irqsetup(ispsoftc_t *isp) } isp->isp_nirq = i + 1; } + ISP_LOCK(isp); return (isp->isp_nirq == 0); } |
