summaryrefslogtreecommitdiffstats
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r--lib/vsprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 86c3385b9eb3..1746bae94d41 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -620,8 +620,8 @@ char *dentry_name(char *buf, char *end, const struct dentry *d, struct printf_sp
620 620
621 rcu_read_lock(); 621 rcu_read_lock();
622 for (i = 0; i < depth; i++, d = p) { 622 for (i = 0; i < depth; i++, d = p) {
623 p = ACCESS_ONCE(d->d_parent); 623 p = READ_ONCE(d->d_parent);
624 array[i] = ACCESS_ONCE(d->d_name.name); 624 array[i] = READ_ONCE(d->d_name.name);
625 if (p == d) { 625 if (p == d) {
626 if (i) 626 if (i)
627 array[i] = ""; 627 array[i] = "";