summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/event_buffer.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2020-06-16 18:25:03 +0200
committerTony Lindgren <tony@atomide.com>2020-06-16 18:25:03 +0200
commit07c7b547a79605f1041d55b84d91a4a4d9c5b363 (patch)
treed98c1adacc8c65b475c325b427e54b8205b0013d /drivers/oprofile/event_buffer.c
parentRevert "bus: ti-sysc: Increase max softreset wait" (diff)
parentLinux 5.8-rc1 (diff)
downloadlinux-07c7b547a79605f1041d55b84d91a4a4d9c5b363.tar.xz
linux-07c7b547a79605f1041d55b84d91a4a4d9c5b363.zip
Merge tag 'v5.8-rc1' into fixes
Linux 5.8-rc1
Diffstat (limited to 'drivers/oprofile/event_buffer.c')
-rw-r--r--drivers/oprofile/event_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/oprofile/event_buffer.c b/drivers/oprofile/event_buffer.c
index 12ea4a4ad607..6c9edc8bbc95 100644
--- a/drivers/oprofile/event_buffer.c
+++ b/drivers/oprofile/event_buffer.c
@@ -113,7 +113,7 @@ static int event_buffer_open(struct inode *inode, struct file *file)
{
int err = -EPERM;
- if (!capable(CAP_SYS_ADMIN))
+ if (!perfmon_capable())
return -EPERM;
if (test_and_set_bit_lock(0, &buffer_opened))