aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 76fb76a0818b..5a9291c31881 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1585,7 +1585,7 @@ static inline int walk_component(struct nameidata *nd, struct path *path,
1585 inode = path->dentry->d_inode; 1585 inode = path->dentry->d_inode;
1586 } 1586 }
1587 err = -ENOENT; 1587 err = -ENOENT;
1588 if (!inode || d_is_negative(path->dentry)) 1588 if (d_is_negative(path->dentry))
1589 goto out_path_put; 1589 goto out_path_put;
1590 1590
1591 if (should_follow_link(path->dentry, follow)) { 1591 if (should_follow_link(path->dentry, follow)) {
@@ -2310,7 +2310,7 @@ mountpoint_last(struct nameidata *nd, struct path *path)
2310 mutex_unlock(&dir->d_inode->i_mutex); 2310 mutex_unlock(&dir->d_inode->i_mutex);
2311 2311
2312done: 2312done:
2313 if (!dentry->d_inode || d_is_negative(dentry)) { 2313 if (d_is_negative(dentry)) {
2314 error = -ENOENT; 2314 error = -ENOENT;
2315 dput(dentry); 2315 dput(dentry);
2316 goto out; 2316 goto out;
@@ -3038,7 +3038,7 @@ retry_lookup:
3038finish_lookup: 3038finish_lookup:
3039 /* we _can_ be in RCU mode here */ 3039 /* we _can_ be in RCU mode here */
3040 error = -ENOENT; 3040 error = -ENOENT;
3041 if (!inode || d_is_negative(path->dentry)) { 3041 if (d_is_negative(path->dentry)) {
3042 path_to_nameidata(path, nd); 3042 path_to_nameidata(path, nd);
3043 goto out; 3043 goto out;
3044 } 3044 }