Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234498
b: refs/heads/master
c: 3db272c
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Mar 4, 2011
1 parent c372021 commit b40a797
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 940c5b2971de443df22eed0441bc74fb0116e9f5
refs/heads/master: 3db272c0494900fcb905a201180a78cae3addd6e
7 changes: 5 additions & 2 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,10 @@ static inline int perf_cgroup_connect(int fd, struct perf_event *event,
return -EBADF;

css = cgroup_css_from_dir(file, perf_subsys_id);
if (IS_ERR(css))
return PTR_ERR(css);
if (IS_ERR(css)) {
ret = PTR_ERR(css);
goto out;
}

cgrp = container_of(css, struct perf_cgroup, css);
event->cgrp = cgrp;
Expand All @@ -422,6 +424,7 @@ static inline int perf_cgroup_connect(int fd, struct perf_event *event,
/* must be done before we fput() the file */
perf_get_cgroup(event);
}
out:
fput_light(file, fput_needed);
return ret;
}
Expand Down

0 comments on commit b40a797

Please sign in to comment.