diff --git a/fs/namei.c b/fs/namei.c index 985c6f3..0d32a0f 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2305,6 +2305,7 @@ path_mountpoint(int dfd, const char *name, struct path *path, unsigned int flags break; err = mountpoint_last(&nd, path); put_link(&nd, &link, cookie); + mntput(link.mnt); } out: if (base)