diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c index ddcf5e748..bf33da377 100644 --- a/hw/xfree86/modes/xf86RandR12.c +++ b/hw/xfree86/modes/xf86RandR12.c @@ -2146,7 +2146,8 @@ xf86RandR14ProviderSetProperty(ScreenPtr pScreen, /* If we don't have any property handler, then we don't care what the * user is setting properties to. */ - if (config->provider_funcs->set_property == NULL) + if (config->provider_funcs == NULL || + config->provider_funcs->set_property == NULL) return TRUE; /* @@ -2164,7 +2165,8 @@ xf86RandR14ProviderGetProperty(ScreenPtr pScreen, ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn); - if (config->provider_funcs->get_property == NULL) + if (config->provider_funcs == NULL || + config->provider_funcs->get_property == NULL) return TRUE; /* Should be safe even w/o vtSema */