Commit 2cb6a442 authored by Al Viro's avatar Al Viro

minix_rename(): minix_delete_entry() might fail

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f556e776
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment