summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-01-14 04:10:57 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2010-01-14 15:05:42 +0100
commit9b6e31021122babe3b3a67b102479f740928b5eb (patch)
treeaca5a8aa7af09e4aa4c30de4e4479164a44de273 /fs
parentFix the -ESTALE handling in do_filp_open() (diff)
downloadlinux-9b6e31021122babe3b3a67b102479f740928b5eb.tar.xz
linux-9b6e31021122babe3b3a67b102479f740928b5eb.zip
Fix configfs leak
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/configfs/symlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c
index c8afa6b1d91d..32a5f46b1157 100644
--- a/fs/configfs/symlink.c
+++ b/fs/configfs/symlink.c
@@ -121,8 +121,10 @@ static int get_target(const char *symname, struct path *path,
ret = -ENOENT;
path_put(path);
}
- } else
+ } else {
ret = -EPERM;
+ path_put(path);
+ }
}
return ret;