diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c index c7a6eabc02a5..0d97235019a9 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1894,6 +1894,9 @@ static int path_init(int dfd, const struct filename *name, unsigned int flags, int retval = 0; const char *s = name->name; + if (!*s) + flags &= ~LOOKUP_RCU; + nd->last_type = LAST_ROOT; /* if there are only slashes... */ nd->flags = flags | LOOKUP_JUMPED | LOOKUP_PARENT; nd->depth = 0; |