summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-03-17 21:44:41 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-03-21 18:50:13 +0000
commite99b0b9368567fb75500511c9d8125284682864f (patch)
treefda4812eca2a5fd488efab71a04247154a2df819 /src
parentde294f34bbf92576d19e6837fb8192eee089163d (diff)
downloadmutter-e99b0b9368567fb75500511c9d8125284682864f.tar.gz
monitor-manager-kms: Don't add GPU if it fails
This is a small mistake spotted while working on a solution for #77. When a GPU fails to initialize, we're adding them anyway, which might have pretty bad consequences when trying to use these NULL GPUs. Issue: #77
Diffstat (limited to 'src')
-rw-r--r--src/backends/native/meta-monitor-manager-kms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 1a8be0855..3cee754d1 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -683,6 +683,7 @@ meta_monitor_manager_kms_initable_init (GInitable *initable,
{
g_warning ("Failed to open secondary gpu '%s': %s",
gpu_path, secondary_error->message);
+ continue;
}
meta_monitor_manager_add_gpu (META_MONITOR_MANAGER (manager_kms),