From: Al Viro Date: Thu, 14 Jan 2010 03:10:57 +0000 (-0500) Subject: Fix configfs leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b6e31021122babe3b3a67b102479f740928b5eb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Fix configfs leak Signed-off-by: Al Viro --- 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;