summaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2014-06-03 16:08:22 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-06-03 16:08:22 +1000
commit714c40005d297744e3c52e76963d65ae05159ba2 (patch)
tree126474d8d804b4cb36a8331e51945738d1b7d805 /kernel/events
parentab30c194a899a6ef940cad4b67712b7c365ba8d8 (diff)
parent5533e0114425dcdb878f11b291f2727af8667a7c (diff)
Merge remote-tracking branch 'cgroup/for-next'
Conflicts: mm/memcontrol.c
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 689237a0c5e..24d35cc38e4 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -608,7 +608,8 @@ static inline int perf_cgroup_connect(int fd, struct perf_event *event,
if (!f.file)
return -EBADF;
- css = css_tryget_from_dir(f.file->f_dentry, &perf_event_cgrp_subsys);
+ css = css_tryget_online_from_dir(f.file->f_dentry,
+ &perf_event_cgrp_subsys);
if (IS_ERR(css)) {
ret = PTR_ERR(css);
goto out;