Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231889
b: refs/heads/master
c: 22a4ec7
h: refs/heads/master
i:
  231887: aa72373
v: v3
  • Loading branch information
Oleg Nesterov authored and Ingo Molnar committed Jan 18, 2011
1 parent 5221a9c commit 4fc6ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: c5ed5145591774bd9a2960ba4ca45a02fc70aad1
refs/heads/master: 22a4ec729017ba613337a28f306f94ba5023fe2e
2 changes: 1 addition & 1 deletion trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -2228,7 +2228,7 @@ find_get_context(struct pmu *pmu, struct task_struct *task, int cpu)
unsigned long flags;
int ctxn, err;

if (!task && cpu != -1) {
if (!task) {
/* Must be root to operate on a CPU event: */
if (perf_paranoid_cpu() && !capable(CAP_SYS_ADMIN))
return ERR_PTR(-EACCES);
Expand Down

0 comments on commit 4fc6ba8

Please sign in to comment.