aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 378497a744b4..fa96a26d3291 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2284,7 +2284,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
2284 /* sayonara */ 2284 /* sayonara */
2285 error = complete_walk(nd); 2285 error = complete_walk(nd);
2286 if (error) 2286 if (error)
2287 return ERR_PTR(-ECHILD); 2287 return ERR_PTR(error);
2288 2288
2289 error = -ENOTDIR; 2289 error = -ENOTDIR;
2290 if (nd->flags & LOOKUP_DIRECTORY) { 2290 if (nd->flags & LOOKUP_DIRECTORY) {
@@ -2383,7 +2383,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
2383 /* Why this, you ask? _Now_ we might have grown LOOKUP_JUMPED... */ 2383 /* Why this, you ask? _Now_ we might have grown LOOKUP_JUMPED... */
2384 error = complete_walk(nd); 2384 error = complete_walk(nd);
2385 if (error) 2385 if (error)
2386 goto exit; 2386 return ERR_PTR(error);
2387 error = -EISDIR; 2387 error = -EISDIR;
2388 if (S_ISDIR(nd->inode->i_mode)) 2388 if (S_ISDIR(nd->inode->i_mode))
2389 goto exit; 2389 goto exit;