Skip to content

Commit 9b6e310

Browse files
author
Al Viro
committed
Fix configfs leak
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 9850c05 commit 9b6e310

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎fs/configfs/symlink.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ static int get_target(const char *symname, struct path *path,
121121
ret = -ENOENT;
122122
path_put(path);
123123
}
124-
} else
124+
} else {
125125
ret = -EPERM;
126+
path_put(path);
127+
}
126128
}
127129

128130
return ret;

0 commit comments

Comments
 (0)