summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 7f4ab820811a..edc18cd63a88 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2383,7 +2383,7 @@ common:
out:
if (want_write)
mnt_drop_write(nd->path.mnt);
- path_put(&nd->path);
+ terminate_walk(nd);
return filp;
exit_mutex_unlock: