https://github.com/torvalds/linux
Revision d22e6338db7f613dd4f6095c190682fcc519e4b7 authored by Oleg Drokin on 31 January 2014, 20:41:58 UTC, committed by Al Viro on 31 January 2014, 22:33:13 UTC
Recent changes to retry on ESTALE in linkat
(commit 442e31ca5a49e398351b2954b51f578353fdf210)
introduced a mountpoint reference leak and a small memory
leak in case a filesystem link operation returns ESTALE
which is pretty normal for distributed filesystems like
lustre, nfs and so on.
Free old_path in such a case.

[AV: there was another missing path_put() nearby - on the previous
goto retry]

Signed-off-by: Oleg Drokin: <green@linuxhacker.ru>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent b168fff
History
Tip revision: d22e6338db7f613dd4f6095c190682fcc519e4b7 authored by Oleg Drokin on 31 January 2014, 20:41:58 UTC
Fix mountpoint reference leakage in linkat
Tip revision: d22e633
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.3 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 264.6 KB
Makefile -rw-r--r-- 48.8 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top