diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 8604e31606a3..09ac9ad94d48 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1798,6 +1798,7 @@ vfs_getopts(struct vfsoptlist *opts, const char *name, int *error) } return (opt->value); } + *error = ENOENT; return (NULL); }