projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b1c784
)
cgroup: set 'start' with the right value in cgroup_path.
author
Tao Ma
<boyu.mt@taobao.com>
Thu, 8 Nov 2012 13:36:38 +0000
(21:36 +0800)
committer
Tejun Heo
<tj@kernel.org>
Thu, 8 Nov 2012 14:23:02 +0000
(06:23 -0800)
'start' is set to buf + buflen and do the '--' immediately.
Just set it to 'buf + buflen - 1' directly.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/cgroup.c
b/kernel/cgroup.c
index 3070164e203663c89848840c6dda8029a3829e02..998ab5957c6a3775a23d833206072a86945effc8 100644
(file)
--- a/
kernel/cgroup.c
+++ b/
kernel/cgroup.c
@@
-1770,9
+1770,9
@@
int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen)
return 0;
}
- start = buf + buflen;
+ start = buf + buflen
- 1
;
- *
--
start = '\0';
+ *start = '\0';
for (;;) {
int len = dentry->d_name.len;