diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2007-07-14 21:18:19 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2007-07-14 21:18:19 +0000 |
commit | def1240ba27369b4e457dc3a8adf7d667aaa3744 (patch) | |
tree | 104b3b3840b5ebffddfa7133189f3243964ec2a9 /sys/gnu | |
parent | 5cecbb94f32cae3d5f2c4f4e6085bfc06f4b9508 (diff) | |
download | FreeBSD-src-def1240ba27369b4e457dc3a8adf7d667aaa3744.zip FreeBSD-src-def1240ba27369b4e457dc3a8adf7d667aaa3744.tar.gz |
The last entry in the ext2_opts array must be NULL,
otherwise the kernel with crash in vfs_filteropt() if an invalid
mount option is passed to ext2fs.
Approved by: re (kensmith)
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index ab70b23..d5ad6f2 100644 --- a/sys/gnu/fs/ext2fs/ext2_vfsops.c +++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c @@ -119,7 +119,7 @@ static int compute_sb_data(struct vnode * devvp, static const char *ext2_opts[] = { "from", "export", "union", "acls", "exec", "atime", "union", "suiddir", "multilabel", "symfollow", "clusterr", - "clusterw", "force" }; + "clusterw", "force", NULL }; /* * VFS Operations. |