drm/i915: don't Oops in debugfs for I915_FBDEV=n
Subsystems (2)
PATCH 1/1 drm/i915: don't Oops in debugfs for I915_FBDEV=n
Failed to properly test this.
Reported-by Chris Wilson <[email protected]>
Cc Chris Wilson <[email protected]>
Signed-off-by Daniel Vetter <[email protected]>
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_debugfs.c +1 -1
@@ -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 ",
Signature · 1 line
1.8.4.rc3
Quoted 5 lines · Daniel Vetter
Failed to properly test this.
Reported-by Chris Wilson <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Tested-by Chris Wilson <[email protected]>
Reviewed-by Chris Wilson <[email protected]>
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre