]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Handle disabled primary plane in debugfs i915_display_info (v2)
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 16 Jun 2014 17:12:55 +0000 (10:12 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Jun 2014 18:16:12 +0000 (20:16 +0200)
commit511de6440a684a71e759bc9c6358c07e70c53bee
tree2d54b13491ddca4eaddb61d014f76d1c890522a5
parenta9493769708d4ea3fe44d1d99f0df13f51bf750e
drm/i915: Handle disabled primary plane in debugfs i915_display_info (v2)

Now that the primary plane can be disabled independently of the CRTC,
the debugfs code needs to be updated to recognize when the primary plane
is disabled and not try to return information about the primary plane's
framebuffer.

This change prevents a NULL dereference when reading i915_display_info
with a disabled primary plane.

v2: Replace a seq_printf() with seq_puts() (suggested by Damien)

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c