summaryrefslogtreecommitdiff
path: root/kms++/src
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-10 11:03:30 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-10 11:03:35 +0300
commit524176c33ee2b79f78d454fa621e0d32e7e72488 (patch)
tree1a54f2251f7ae47f1b4d61ebd5f282b5400becbc /kms++/src
parent4ca4852eac209cc822252c5b17b1e8f2ce8b2c6c (diff)
kmstest: give an error if master permissions could not be set
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src')
-rw-r--r--kms++/src/card.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp
index f7f1a5a..0e6c0b0 100644
--- a/kms++/src/card.cpp
+++ b/kms++/src/card.cpp
@@ -32,7 +32,7 @@ Card::Card(const std::string& device)
int r;
r = drmSetMaster(fd);
- m_master = r == 0;
+ m_is_master = r == 0;
if (getenv("KMSXX_DISABLE_UNIVERSAL_PLANES") == 0) {
r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
@@ -135,6 +135,7 @@ Card::~Card()
void Card::drop_master()
{
drmDropMaster(fd());
+ m_is_master = false;
}
void Card::restore_modes()