summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_fb.c
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2009-06-11 00:44:26 -0400
committerEric Anholt <eric@anholt.net>2009-06-17 14:22:47 -0700
commit049b77cb2ad8bd36308a4a424ca4f2eb4d65d2af (patch)
tree1fb2b65f7d5be1de452b9d044632f7066b1751f1 /drivers/gpu/drm/i915/intel_fb.c
parent3fe0344faf7fdcb158bd5c1a9aec960a8d70c8e8 (diff)
downloadblackbird-op-linux-049b77cb2ad8bd36308a4a424ca4f2eb4d65d2af.tar.gz
blackbird-op-linux-049b77cb2ad8bd36308a4a424ca4f2eb4d65d2af.zip
drm/i915: Warn when inteldrmfb fails to restore its framebuffer config
While sifting through the inteldrmfb code trying to solve #22040 I found that the fb restore path doesn't check the return value of drm_crtc_helper_set_config(), which seems to have all sorts of potential failure modes. We should warn someone if one of these is triggered. Signed-Off-By: Ben Gamari <bgamari.foss@gmail.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> [anholt: hand-applied, failures are mine] Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_fb.c')
-rw-r--r--drivers/gpu/drm/i915/intel_fb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c
index 8e28e5993df5..1af7d68e3807 100644
--- a/drivers/gpu/drm/i915/intel_fb.c
+++ b/drivers/gpu/drm/i915/intel_fb.c
@@ -870,7 +870,11 @@ static int intelfb_single_fb_probe(struct drm_device *dev)
*/
void intelfb_restore(void)
{
- drm_crtc_helper_set_config(&kernelfb_mode);
+ int ret;
+ if ((ret = drm_crtc_helper_set_config(&kernelfb_mode)) != 0) {
+ printk(KERN_ERR "Failed to restore crtc configuration: %d\n",
+ ret);
+ }
}
static void intelfb_restore_work_fn(struct work_struct *ignored)
OpenPOWER on IntegriCloud