[mutter/gbsneto/wayland-stutter: 5/7] monitor-manager-kms: Don't add GPU if it fails
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/wayland-stutter: 5/7] monitor-manager-kms: Don't add GPU if it fails
- Date: Wed, 21 Mar 2018 18:50:59 +0000 (UTC)
commit e99b0b9368567fb75500511c9d8125284682864f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Mar 17 21:44:41 2018 -0300
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
src/backends/native/meta-monitor-manager-kms.c | 1 +
1 file changed, 1 insertion(+)
---
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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]