projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'asoc/topic/twl6040' into asoc-next
[deliverable/linux.git]
/
fs
/
kernfs
/
dir.c
diff --git
a/fs/kernfs/dir.c
b/fs/kernfs/dir.c
index 03b688d19f6964010c27c16759520315892c780d..37f9678ae4df5c191e1870de88beff21395d4839 100644
(file)
--- a/
fs/kernfs/dir.c
+++ b/
fs/kernfs/dir.c
@@
-153,9
+153,9
@@
static int kernfs_path_from_node_locked(struct kernfs_node *kn_to,
p = buf + len + nlen;
*p = '\0';
for (kn = kn_to; kn != common; kn = kn->parent) {
-
nlen
= strlen(kn->name);
- p -=
nlen
;
- memcpy(p, kn->name,
nlen
);
+
size_t tmp
= strlen(kn->name);
+ p -=
tmp
;
+ memcpy(p, kn->name,
tmp
);
*(--p) = '/';
}
This page took
0.024112 seconds
and
5
git commands to generate.