From: Daniel Vetter Date: Thu, 17 Oct 2013 12:35:31 +0000 (+0200) Subject: drm/i915: don't Oops in debugfs for I915_FBDEV=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=131a56dc41b8c026f97466341167d86deb25357b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/i915: don't Oops in debugfs for I915_FBDEV=n Failed to properly test this. Reported-by: Chris Wilson Cc: Chris Wilson Tested-by: Chris Wilson Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 5fce5d89b68a..7811bf40dd2c 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -1456,7 +1456,7 @@ static int i915_gem_framebuffer_info(struct seq_file *m, void *data) mutex_lock(&dev->mode_config.fb_lock); list_for_each_entry(fb, &dev->mode_config.fb_list, base.head) { - if (&fb->base == ifbdev->helper.fb) + if (ifbdev && &fb->base == ifbdev->helper.fb) continue; seq_printf(m, "user size: %d x %d, depth %d, %d bpp, refcount %d, obj ",