summaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/bios32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha/kernel/bios32.c')
-rw-r--r--arch/alpha/kernel/bios32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/kernel/bios32.c b/arch/alpha/kernel/bios32.c
index 46880f11e..64c7442b6 100644
--- a/arch/alpha/kernel/bios32.c
+++ b/arch/alpha/kernel/bios32.c
@@ -2041,7 +2041,7 @@ asmlinkage int sys_pciconfig_read(unsigned long bus, unsigned long dfn,
unsigned int uint;
long err = 0;
- if (!suser())
+ if (!capable(CAP_SYS_ADMIN))
return -EPERM;
lock_kernel();
@@ -2082,7 +2082,7 @@ asmlinkage int sys_pciconfig_write(unsigned long bus, unsigned long dfn,
unsigned int uint;
long err = 0;
- if (!suser())
+ if (!capable(CAP_SYS_ADMIN))
return -EPERM;
lock_kernel();