2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 07:40:11 -07:00
repo/xorg/xf86-video-ati/patches/rootless-ati.patch

16 lines
412 B
Diff
Raw Normal View History

2020-02-09 04:42:27 -07:00
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index b3db7c4..e85aee5 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -2168,6 +2168,10 @@ static Bool radeon_set_drm_master(ScrnInfoPtr pScrn)
return TRUE;
#endif
+ err = drmIsMaster(pRADEONEnt->fd);
+ if (err)
+ return TRUE;
+
err = drmSetMaster(pRADEONEnt->fd);
if (err)
ErrorF("Unable to retrieve master\n");