minix_rename(): minix_delete_entry() might fail
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f556e776b1
commit
2cb6a44220
@ -230,7 +230,10 @@ static int minix_rename(struct user_namespace *mnt_userns,
|
||||
inode_inc_link_count(new_dir);
|
||||
}
|
||||
|
||||
minix_delete_entry(old_de, old_page);
|
||||
err = minix_delete_entry(old_de, old_page);
|
||||
if (err)
|
||||
goto out_dir;
|
||||
|
||||
mark_inode_dirty(old_inode);
|
||||
|
||||
if (dir_de) {
|
||||
|
Loading…
Reference in New Issue
Block a user