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

Commit c972b4bc authored by Al Viro's avatar Al Viro
Browse files

vfs: live vfsmounts never have NULL ->mnt_sb



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4c1d5a64
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ static int remount(struct super_block *sb, int *flags, char *data)
		return -EINVAL;
	}

	if (usbfs_mount && usbfs_mount->mnt_sb)
	if (usbfs_mount)
		update_sb(usbfs_mount->mnt_sb);

	return 0;
@@ -500,10 +500,9 @@ static int fs_create_by_name (const char *name, mode_t mode,
	 * have around.
	 */
	if (!parent ) {
		if (usbfs_mount && usbfs_mount->mnt_sb) {
		if (usbfs_mount)
			parent = usbfs_mount->mnt_root;
	}
	}

	if (!parent) {
		dbg("Ah! can not find a parent!");
+1 −1
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ static int configfs_create_dir(struct config_item * item, struct dentry *dentry)

	if (item->ci_parent)
		parent = item->ci_parent->ci_dentry;
	else if (configfs_mount && configfs_mount->mnt_sb)
	else if (configfs_mount)
		parent = configfs_mount->mnt_root;
	else
		return -EFAULT;