summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bnxt.c
diff options
context:
space:
mode:
authorDenis Fondras <denis@cvs.openbsd.org>2023-03-22 17:01:08 +0000
committerDenis Fondras <denis@cvs.openbsd.org>2023-03-22 17:01:08 +0000
commit7966f01aa1f370ee4f6e2e13bcc5ac32a3c358bf (patch)
tree819d3f27b1c2fb597fd118b849d1b86600a913d9 /sys/dev/pci/if_bnxt.c
parent7b1299867523d4b2a6f9970064ab790c5597ee8f (diff)
Reverse bus_space_unmap(9) order
When `unmap_1` is reached we should bus_space_unmap() sc_hwrm_* and not sc_db_*. ok miod@
Diffstat (limited to 'sys/dev/pci/if_bnxt.c')
-rw-r--r--sys/dev/pci/if_bnxt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bnxt.c b/sys/dev/pci/if_bnxt.c
index a85208a0113..4eb58b16c12 100644
--- a/sys/dev/pci/if_bnxt.c
+++ b/sys/dev/pci/if_bnxt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bnxt.c,v 1.37 2022/06/27 10:02:20 bluhm Exp $ */
+/* $OpenBSD: if_bnxt.c,v 1.38 2023/03/22 17:01:07 denis Exp $ */
/*-
* Broadcom NetXtreme-C/E network driver.
*
@@ -725,11 +725,11 @@ deintr:
free_resp:
bnxt_dmamem_free(sc, sc->sc_cmd_resp);
unmap_2:
- bus_space_unmap(sc->sc_hwrm_t, sc->sc_hwrm_h, sc->sc_hwrm_s);
- sc->sc_hwrm_s = 0;
-unmap_1:
bus_space_unmap(sc->sc_db_t, sc->sc_db_h, sc->sc_db_s);
sc->sc_db_s = 0;
+unmap_1:
+ bus_space_unmap(sc->sc_hwrm_t, sc->sc_hwrm_h, sc->sc_hwrm_s);
+ sc->sc_hwrm_s = 0;
}
void