ext2: initialize opts.s_mount_opt as zero before using it
authorxingaopeng <xingaopeng@huawei.com>
Sat, 24 Nov 2018 11:21:59 +0000 (19:21 +0800)
committerJan Kara <jack@suse.cz>
Tue, 27 Nov 2018 09:21:03 +0000 (10:21 +0100)
commite5f5b717983bccfa033282e9886811635602510e
tree3322f52b05b6c849c532d3abc696674272d2b491
parentb54e41f5efcb4316b2f30b30c2535cc194270373
ext2: initialize opts.s_mount_opt as zero before using it

We need to initialize opts.s_mount_opt as zero before using it, else we
may get some unexpected mount options.

Fixes: 088519572ca8 ("ext2: Parse mount options into a dedicated structure")
CC: stable@vger.kernel.org
Signed-off-by: xingaopeng <xingaopeng@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c