Commit 70e42fea authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: fix possible double unlock when moving a directory

parent eeac8ede
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3884,11 +3884,9 @@ static int ext4_rename(struct mnt_idmap *idmap, struct inode *old_dir,
				goto end_rename;
		}
		retval = ext4_rename_dir_prepare(handle, &old);
		if (retval) {
			inode_unlock(old.inode);
		if (retval)
			goto end_rename;
	}
	}
	/*
	 * If we're renaming a file within an inline_data dir and adding or
	 * setting the new dirent causes a conversion from inline_data to