diff options
-rw-r--r-- | sys/xfs/xfs_syscalls-common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/xfs/xfs_syscalls-common.c b/sys/xfs/xfs_syscalls-common.c index dc0b1a6da23..e7dae1e49e9 100644 --- a/sys/xfs/xfs_syscalls-common.c +++ b/sys/xfs/xfs_syscalls-common.c @@ -496,12 +496,11 @@ remote_pioctl (d_thread_t *p, struct xfs_message_pioctl *msg = NULL; struct xfs_message_wakeup_data *msg2; - 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)); if (vp != NULL) { struct xfs_node *xn; |