diff --git a/src/backends/native/meta-kms-impl-device.c b/src/backends/native/meta-kms-impl-device.c index 024537172..acb8f6f88 100644 --- a/src/backends/native/meta-kms-impl-device.c +++ b/src/backends/native/meta-kms-impl-device.c @@ -440,7 +440,12 @@ meta_kms_impl_device_list_lessees (MetaKmsImplDevice *impl_device, meta_assert_in_kms_impl (meta_kms_impl_get_kms (priv->impl)); + if (!ensure_device_file (impl_device, error)) + return FALSE; + + meta_kms_impl_device_hold_fd (impl_device); list = drmModeListLessees (meta_kms_impl_device_get_fd (impl_device)); + meta_kms_impl_device_unhold_fd (impl_device); if (!list) {