aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bwn/if_bwn_phy_lp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/bwn/if_bwn_phy_lp.c')
-rw-r--r--sys/dev/bwn/if_bwn_phy_lp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bwn/if_bwn_phy_lp.c b/sys/dev/bwn/if_bwn_phy_lp.c
index 384137f8d4b4..0faee2d8625d 100644
--- a/sys/dev/bwn/if_bwn_phy_lp.c
+++ b/sys/dev/bwn/if_bwn_phy_lp.c
@@ -1127,7 +1127,7 @@ bwn_phy_lp_bugfix(struct bwn_mac *mac)
uint8_t mode;
int8_t txpwridx;
- tabs = (uint32_t *)mallocarray(size, sizeof(uint32_t), M_DEVBUF,
+ tabs = (uint32_t *)malloc(sizeof(uint32_t) * size, M_DEVBUF,
M_NOWAIT | M_ZERO);
if (tabs == NULL) {
device_printf(sc->sc_dev, "failed to allocate buffer.\n");