kms: Add a missing g_set_error on error

So the GError is not left NULL and then dereferenced.

Fix provided by Jonas Ådahl <jadahl@gmail.com>

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1878
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1925>
This commit is contained in:
Daniel van Vugt 2021-07-09 16:26:11 +08:00
parent 747dbe2a69
commit d996319cf9

View File

@ -312,6 +312,9 @@ meta_create_kms_impl_device (MetaKmsDevice *device,
}
}
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"No suitable mode setting backend found");
return NULL;
}
}