diff options
author | 2018-04-06 15:14:27 +0000 | |
---|---|---|
committer | 2018-04-06 15:14:27 +0000 | |
commit | 0cde9b56bf80608347d44b82649eab0138930e09 (patch) | |
tree | 1719a6ee5edcf9b68979e6281348db9680103eab /sys/tmpfs/tmpfs_vfsops.c | |
parent | Tedu files that got removed in LLVM 6.0.0. (diff) | |
download | wireguard-openbsd-0cde9b56bf80608347d44b82649eab0138930e09.tar.xz wireguard-openbsd-0cde9b56bf80608347d44b82649eab0138930e09.zip |
Now that the args are passed in by the caller there is no need to call
copyin(9) ourselves anymore. Fixes tmpfs after recent changes.
ok bluhm@ deraadt@ visa@
Diffstat (limited to 'sys/tmpfs/tmpfs_vfsops.c')
-rw-r--r-- | sys/tmpfs/tmpfs_vfsops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/tmpfs/tmpfs_vfsops.c b/sys/tmpfs/tmpfs_vfsops.c index 7fe10c5f00e..41f59abda3b 100644 --- a/sys/tmpfs/tmpfs_vfsops.c +++ b/sys/tmpfs/tmpfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_vfsops.c,v 1.15 2018/03/07 14:44:22 deraadt Exp $ */ +/* $OpenBSD: tmpfs_vfsops.c,v 1.16 2018/04/06 15:14:27 patrick Exp $ */ /* $NetBSD: tmpfs_vfsops.c,v 1.52 2011/09/27 01:10:43 christos Exp $ */ /* @@ -121,9 +121,6 @@ tmpfs_mount(struct mount *mp, const char *path, void *data, if (tmpfs_mem_info(1) < TMPFS_PAGES_RESERVED) return EINVAL; - error = copyin(data, args, sizeof(struct tmpfs_args)); - if (error) - return error; if (args->ta_root_uid == VNOVAL || args->ta_root_gid == VNOVAL || args->ta_root_mode == VNOVAL) return EINVAL; |