Loading fs/namei.c +5 −9 Original line number Diff line number Diff line Loading @@ -858,13 +858,6 @@ static int set_root(struct nameidata *nd) return 0; } static void path_put_conditional(struct path *path, struct nameidata *nd) { dput(path->dentry); if (path->mnt != nd->path.mnt) mntput(path->mnt); } static inline void path_to_nameidata(const struct path *path, struct nameidata *nd) { Loading Loading @@ -1312,8 +1305,11 @@ static int follow_managed(struct path *path, struct nameidata *nd) ret = 1; if (ret > 0 && unlikely(d_flags_negative(flags))) ret = -ENOENT; if (unlikely(ret < 0)) path_put_conditional(path, nd); if (unlikely(ret < 0)) { dput(path->dentry); if (path->mnt != nd->path.mnt) mntput(path->mnt); } return ret; } Loading Loading
fs/namei.c +5 −9 Original line number Diff line number Diff line Loading @@ -858,13 +858,6 @@ static int set_root(struct nameidata *nd) return 0; } static void path_put_conditional(struct path *path, struct nameidata *nd) { dput(path->dentry); if (path->mnt != nd->path.mnt) mntput(path->mnt); } static inline void path_to_nameidata(const struct path *path, struct nameidata *nd) { Loading Loading @@ -1312,8 +1305,11 @@ static int follow_managed(struct path *path, struct nameidata *nd) ret = 1; if (ret > 0 && unlikely(d_flags_negative(flags))) ret = -ENOENT; if (unlikely(ret < 0)) path_put_conditional(path, nd); if (unlikely(ret < 0)) { dput(path->dentry); if (path->mnt != nd->path.mnt) mntput(path->mnt); } return ret; } Loading