projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9850c05
)
Fix configfs leak
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 14 Jan 2010 03:10:57 +0000
(22:10 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 14 Jan 2010 14:05:42 +0000
(09:05 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/configfs/symlink.c
patch
|
blob
|
history
diff --git
a/fs/configfs/symlink.c
b/fs/configfs/symlink.c
index
c8afa6b
..
32a5f46
100644
(file)
--- 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;