Message ID | 56FD1151.5050303@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index 5029f92..a6d3c58 100644 --- a/drivers/gpu/drm/i915/intel_fbdev.c +++ b/drivers/gpu/drm/i915/intel_fbdev.c @@ -123,8 +123,9 @@ static struct intel_fbdev *intel_fbdev_get_if_active(struct drm_device *dev) return NULL; info = dev_priv->fbdev->helper.fbdev; - if (info->screen_base == NULL) + if (info == NULL || info->screen_base == NULL) return NULL; if (info->state != FBINFO_STATE_RUNNING) return NULL;