Skip to content

Commit 2cb6a44

Browse files
author
Al Viro
committed
minix_rename(): minix_delete_entry() might fail
Signed-off-by: Al Viro <[email protected]>
1 parent f556e77 commit 2cb6a44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/minix/namei.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,10 @@ static int minix_rename(struct user_namespace *mnt_userns,
230230
inode_inc_link_count(new_dir);
231231
}
232232

233-
minix_delete_entry(old_de, old_page);
233+
err = minix_delete_entry(old_de, old_page);
234+
if (err)
235+
goto out_dir;
236+
234237
mark_inode_dirty(old_inode);
235238

236239
if (dir_de) {

0 commit comments

Comments
 (0)