projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f556e77
)
minix_rename(): minix_delete_entry() might fail
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 20 Jan 2023 00:29:26 +0000
(19:29 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 20 Jan 2023 00:29:26 +0000
(19:29 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/minix/namei.c
patch
|
blob
|
history
diff --git
a/fs/minix/namei.c
b/fs/minix/namei.c
index 382ead96bf54166c9df204896ace2d449895d414..b99696b90b42970f2e21fc49f1389264736da5ce 100644
(file)
--- a/
fs/minix/namei.c
+++ b/
fs/minix/namei.c
@@
-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) {