aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mpr
diff options
context:
space:
mode:
authorKenneth D. Merry <ken@FreeBSD.org>2022-10-17 16:48:34 +0000
committerKenneth D. Merry <ken@FreeBSD.org>2022-10-17 16:48:34 +0000
commit11778fca4a83f5e3b597c75785aa5c0ee0dc518e (patch)
tree70bc1d90943f53b14f3f5674e19d5fbd7f2b1bc3 /sys/dev/mpr
parentca2560bd85ab8d5cb18855cf61f49a7219cb3d8f (diff)
Diffstat (limited to 'sys/dev/mpr')
-rw-r--r--sys/dev/mpr/mpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mpr/mpr.c b/sys/dev/mpr/mpr.c
index b4d3f3269dba..8450ef9900b0 100644
--- a/sys/dev/mpr/mpr.c
+++ b/sys/dev/mpr/mpr.c
@@ -740,7 +740,7 @@ mpr_iocfacts_allocate(struct mpr_softc *sc, uint8_t attaching)
* XXX If the number of MSI-X vectors changes during re-init, this
* won't see it and adjust.
*/
- if (attaching && (error = mpr_pci_setup_interrupts(sc)) != 0) {
+ if ((attaching || reallocating) && (error = mpr_pci_setup_interrupts(sc)) != 0) {
mpr_dprint(sc, MPR_INIT|MPR_ERROR,
"Failed to setup interrupts\n");
mpr_free(sc);