Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48440e89 authored by David Howells's avatar David Howells Committed by David Woodhouse
Browse files

[MTD] Initialise s_flags in get_sb_mtd_aux()



Initialise s_flags in get_sb_mtd_aux() from the flags parameter.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent fc0e0197
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -70,6 +70,8 @@ static int get_sb_mtd_aux(struct file_system_type *fs_type, int flags,
	DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n",
	      mtd->index, mtd->name);

	sb->s_flags = flags;

	ret = fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
	if (ret < 0) {
		up_write(&sb->s_umount);