[Intel-gfx] [PATCH] drm/i915: prevent crash with .disable_display parameter
clinton.a.taylor at intel.com
clinton.a.taylor at intel.com
Wed Jan 18 00:37:28 UTC 2017
From: Clint Taylor <clinton.a.taylor at intel.com>
The .disable_display parameter was causing a fatal crash when fbdev was
dereferenced during driver init.
Signed-off-by: Clint Taylor <clinton.a.taylor at intel.com>
---
drivers/gpu/drm/i915/i915_drv.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 4e5ea58..b2a9195 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1140,7 +1140,9 @@ static void i915_driver_register(struct drm_i915_private *dev_priv)
* irqs are fully enabled. We do it last so that the async config
* cannot run before the connectors are registered.
*/
- intel_fbdev_initial_config_async(dev);
+ if (dev_priv->fbdev) {
+ intel_fbdev_initial_config_async(dev);
+ }
}
/**
--
1.7.9.5
More information about the Intel-gfx
mailing list