diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2020-04-17 23:29:54 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2020-04-17 23:29:54 +0000 |
commit | 7fadaa63439aae263847d18ae01eea4337a6d82c (patch) | |
tree | 24b810ddf058d62a1ffea8f7977e7a07e01198c1 /sys | |
parent | 2817f60eeea2296263c26bd863dfdf3d2493a413 (diff) |
Fix an incorrect test for root in drm linux compatiblity code.
Patch from and commited on behalf of Jonathan Gray (jsg@)
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/include/linux/capability.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/include/linux/capability.h b/sys/dev/pci/drm/include/linux/capability.h index c265f92fdd8..db938d1bc96 100644 --- a/sys/dev/pci/drm/include/linux/capability.h +++ b/sys/dev/pci/drm/include/linux/capability.h @@ -13,7 +13,7 @@ static inline int capable(int cap) { KASSERT(cap == CAP_SYS_ADMIN); - return suser(curproc); + return suser(curproc) == 0; } #endif |