summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-21 11:51:28 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-21 11:51:28 +0200
commit9aeb121657a076a0c03ac6e7fc3c1e93e465e5d9 (patch)
tree716355c2f8f30aa0c59a5400fa97b5727e61fff4
parent6df5511c63edc75644d0a9d0f94f9eed79e9ab7f (diff)
kmstest: check return values from reserve_*
-rw-r--r--utils/kmstest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp
index 32dcb69..e412f90 100644
--- a/utils/kmstest.cpp
+++ b/utils/kmstest.cpp
@@ -497,7 +497,9 @@ static vector<OutputInfo> setups_to_outputs(Card& card, ResourceManager& resman,
OutputInfo output = { };
output.connector = resman.reserve_connector(conn);
+ EXIT_IF(!output.connector, "Failed to reserve connector %s", conn->fullname().c_str());
output.crtc = resman.reserve_crtc(conn);
+ EXIT_IF(!output.crtc, "Failed to reserve crtc for %s", conn->fullname().c_str());
output.mode = output.connector->get_default_mode();
output.fbs = get_default_fb(card, output.mode.hdisplay, output.mode.vdisplay);