From: Al Viro Date: Thu, 14 Jan 2010 03:10:57 +0000 (-0500) Subject: Fix configfs leak X-Git-Tag: v2.6.33-rc5~25^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b6e31021122babe3b3a67b102479f740928b5eb;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Fix configfs leak Signed-off-by: Al Viro --- diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c index c8afa6b..32a5f46 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;