Skip to content
Commit f9381284 authored by Al Viro's avatar Al Viro
Browse files

jffs2: reduce the breakage on recovery from halfway failed rename()



d_instantiate(new_dentry, old_inode) is absolutely wrong thing to
do - it will oops if new_dentry used to be positive, for starters.
What we need is d_invalidate() the target and be done with that.

Cc: stable@vger.kernel.org # v3.18+
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 803c0012
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment