From d678780e6027a653bd3af3344494ee8f2c93d22c Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Sat, 14 Jul 2007 21:18:19 +0000 Subject: 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) --- sys/gnu/fs/ext2fs/ext2_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/gnu') diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index ab70b23f803f..d5ad6f22feb4 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. -- cgit v1.3