]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 18:32:11 +0000 (19:32 +0100)
commit1666cf8c492d7a9b8b83e26eb139961a4c137b80
tree88dcf1f946ad48ad790f24209bde080969c5ea2c
parent553927d6aab993e1297d0c69274cd0c2df5440ca
ext2: initialize opts.s_mount_opt as zero before using it

commit e5f5b717983bccfa033282e9886811635602510e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext2/super.c