projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c8119
)
Revert "metadata: drop support for kernels < v3.15"
author
Łukasz Stelmach
<l.stelmach@samsung.com>
Wed, 12 Nov 2014 11:44:21 +0000
(12:44 +0100)
committer
Łukasz Stelmach
<l.stelmach@samsung.com>
Wed, 19 Nov 2014 14:33:08 +0000
(15:33 +0100)
This reverts commit
53711b606ed83f9b8dd7dc1f3832a01bd6409d79
.
metadata.c
patch
|
blob
|
history
diff --git
a/metadata.c
b/metadata.c
index a3c52ef6dd261e507d942e3a42a400f3bea719e4..9430ce6d16a7e44f6c3407d787d97e96f7c27cff 100644
(file)
--- a/
metadata.c
+++ b/
metadata.c
@@
-382,7
+382,15
@@
static int kdbus_meta_append_cgroup(struct kdbus_meta *meta)
if (!buf)
return -ENOMEM;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
path = task_cgroup_path(current, buf, PAGE_SIZE);
+#else
+ ret = task_cgroup_path(current, buf, PAGE_SIZE);
+ if (ret < 0)
+ path = NULL;
+ else
+ path = buf;
+#endif
if (path)
ret = kdbus_meta_append_str(meta, KDBUS_ITEM_CGROUP, path);