summaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_vfsops.c
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2014-12-09 07:05:07 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2014-12-09 07:05:07 +0000
commit8f456837b1fba053042852c2b58706cec1ae226e (patch)
tree14aed88be4d213bba6895e0464371d1393be6c24 /sys/msdosfs/msdosfs_vfsops.c
parentad90d9845d96f21749e3776b0296938c6d60ca9a (diff)
More malloc() -> mallocarray() in the kernel.
ok deraadt@ tedu@
Diffstat (limited to 'sys/msdosfs/msdosfs_vfsops.c')
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index a96382bb1bf..ae58709c208 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vfsops.c,v 1.68 2014/07/12 18:50:41 tedu Exp $ */
+/* $OpenBSD: msdosfs_vfsops.c,v 1.69 2014/12/09 07:05:06 doug Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */
/*-
@@ -524,7 +524,7 @@ msdosfs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p,
error = EINVAL;
goto error_exit;
}
- pmp->pm_inusemap = malloc(bmapsiz * sizeof(*pmp->pm_inusemap),
+ pmp->pm_inusemap = mallocarray(bmapsiz, sizeof(*pmp->pm_inusemap),
M_MSDOSFSFAT, M_WAITOK | M_CANFAIL);
if (pmp->pm_inusemap == NULL) {
error = EINVAL;