diff options
-rw-r--r-- | fs/namei.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c index 6d47fac64292..c1f18e4f034c 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -810,6 +810,7 @@ follow_link(struct path *link, struct nameidata *nd, void **p) | |||
810 | return error; | 810 | return error; |
811 | 811 | ||
812 | out_put_nd_path: | 812 | out_put_nd_path: |
813 | *p = NULL; | ||
813 | path_put(&nd->path); | 814 | path_put(&nd->path); |
814 | path_put(link); | 815 | path_put(link); |
815 | return error; | 816 | return error; |