aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 14c73edca9ce..bc24894c5f14 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2122,11 +2122,13 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
2122 dir = nd->path.dentry; 2122 dir = nd->path.dentry;
2123 case LAST_DOT: 2123 case LAST_DOT:
2124 if (need_reval_dot(dir)) { 2124 if (need_reval_dot(dir)) {
2125 error = d_revalidate(nd->path.dentry, nd); 2125 int status = d_revalidate(nd->path.dentry, nd);
2126 if (!error) 2126 if (!status)
2127 error = -ESTALE; 2127 status = -ESTALE;
2128 if (error < 0) 2128 if (status < 0) {
2129 error = status;
2129 goto exit; 2130 goto exit;
2131 }
2130 } 2132 }
2131 /* fallthrough */ 2133 /* fallthrough */
2132 case LAST_ROOT: 2134 case LAST_ROOT: