projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branches 'regulator/topic/helpers', 'regulator/topic/hi655x...
[platform/kernel/linux-starfive.git]
/
fs
/
namei.c
diff --git
a/fs/namei.c
b/fs/namei.c
index
d41fab7
..
19dcf62
100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-2145,6
+2145,9
@@
static const char *path_init(struct nameidata *nd, unsigned flags)
int retval = 0;
const char *s = nd->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;