summaryrefslogtreecommitdiff
path: root/sys/xfs
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-10-08 04:15:16 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-10-08 04:15:16 +0000
commitd0aa54a0d4ea6a5829f72c5d8e83be3a2600deca (patch)
tree00047cb58ad4a4453db399c255919b5bd3fad9b7 /sys/xfs
parent5fe5ffe7fab12d593fcc5f9f1fe293422159975c (diff)
More simple memset(,0,) -> M_ZERO changes. In this batch move to
size(*p) as the first malloc() parameter where p is declared locally and thus easy to check. Add M_ZERO to gpe_table allocation in acpi.c even though there is no obvious bzero or memset nearby.
Diffstat (limited to 'sys/xfs')
-rw-r--r--sys/xfs/xfs_vnodeops-common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/xfs/xfs_vnodeops-common.c b/sys/xfs/xfs_vnodeops-common.c
index ecb61f8d839..9531c0a719a 100644
--- a/sys/xfs/xfs_vnodeops-common.c
+++ b/sys/xfs/xfs_vnodeops-common.c
@@ -931,12 +931,11 @@ xfs_symlink_common(struct vnode *dvp,
NNPFSDEB(XDEBVNOPS, ("xfs_symlink: %s\n", name));
- msg = malloc(sizeof(struct xfs_message_symlink), M_TEMP, M_WAITOK);
+ msg = malloc(sizeof(*msg), M_TEMP, M_WAITOK | M_ZERO);
if (msg == NULL) {
error = ENOMEM;
goto done;
}
- memset(msg, 0, sizeof(*msg));
msg->header.opcode = NNPFS_MSG_SYMLINK;
msg->parent_handle = xn->handle;