History

ext4: fix possible double unlock when moving a directory

Theodore Ts'o committed 3 years ago

Commit 70e42fe1 parent eeac8ed1 file · +1 −3Browse files

Unified · Split

fs/ext4/namei.c+1−3
@@ -3884,10 +3884,8 @@ static int ext4_rename(struct mnt_idmap *idmap, struct inode *old_dir, · 3883 unmodified lines
38843884 goto end_rename;
38853885 }
38863886 retval = ext4_rename_dir_prepare(handle, &old);
3887− if (retval) {
3888− inode_unlock(old.inode);
3887+ if (retval)
38893888 goto end_rename;
3890− }
38913889 }
38923890 /*
38933891 * If we're renaming a file within an inline_data dir and adding or

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t