https://github.com/torvalds/linux
Revision f93812846f31381d35c04c6c577d724254355e7f authored by Al Viro on 08 March 2016, 04:07:10 UTC, committed by Al Viro on 08 March 2016, 04:07:10 UTC
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: Al Viro <viro@zeniv.linux.org.uk>
1 parent 803c001
History
Tip revision: f93812846f31381d35c04c6c577d724254355e7f authored by Al Viro on 08 March 2016, 04:07:10 UTC
jffs2: reduce the breakage on recovery from halfway failed rename()
Tip revision: f938128
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 337.0 KB
Makefile -rw-r--r-- 53.7 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top