diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 0d1dff7d3d95..aaaa81036234 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -763,6 +763,7 @@ static fastcall int __link_path_walk(const char * name, struct nameidata *nd) | |||
763 | struct qstr this; | 763 | struct qstr this; |
764 | unsigned int c; | 764 | unsigned int c; |
765 | 765 | ||
766 | nd->flags |= LOOKUP_CONTINUE; | ||
766 | err = exec_permission_lite(inode, nd); | 767 | err = exec_permission_lite(inode, nd); |
767 | if (err == -EAGAIN) { | 768 | if (err == -EAGAIN) { |
768 | err = permission(inode, MAY_EXEC, nd); | 769 | err = permission(inode, MAY_EXEC, nd); |
@@ -815,7 +816,6 @@ static fastcall int __link_path_walk(const char * name, struct nameidata *nd) | |||
815 | if (err < 0) | 816 | if (err < 0) |
816 | break; | 817 | break; |
817 | } | 818 | } |
818 | nd->flags |= LOOKUP_CONTINUE; | ||
819 | /* This does the actual lookups.. */ | 819 | /* This does the actual lookups.. */ |
820 | err = do_lookup(nd, &this, &next); | 820 | err = do_lookup(nd, &this, &next); |
821 | if (err) | 821 | if (err) |