aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pst/pst-iop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pst/pst-iop.c')
-rw-r--r--sys/dev/pst/pst-iop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pst/pst-iop.c b/sys/dev/pst/pst-iop.c
index b4819f35c72a..15fbf36b6328 100644
--- a/sys/dev/pst/pst-iop.c
+++ b/sys/dev/pst/pst-iop.c
@@ -323,7 +323,7 @@ iop_get_lct(struct iop_softc *sc)
contigfree(reply, ALLOCSIZE, M_PSTIOP);
return 0;
}
- if (!(sc->lct = mallocarray(reply->table_size, sizeof(struct i2o_lct_entry),
+ if (!(sc->lct = malloc(reply->table_size * sizeof(struct i2o_lct_entry),
M_PSTIOP, M_NOWAIT | M_ZERO))) {
contigfree(reply, ALLOCSIZE, M_PSTIOP);
return 0;