summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-12 23:35:35 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-15 07:56:38 +1000
commit74dcd6f117483c0789508b4f1985ff2a71b6e6b9 (patch)
tree0eeadaf696928a6262109d6aa3cd3a166fc0367d
parent87ac0d29e2db08b9478b9101e2e16a6b0267344a (diff)
downloadnouveau-74dcd6f117483c0789508b4f1985ff2a71b6e6b9.tar.gz
drm: warn if we fail to re-pin fb on resume
Spotted by Coverity. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drm/nouveau_display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drm/nouveau_display.c b/drm/nouveau_display.c
index 1cc7b603c..65b4fd53d 100644
--- a/drm/nouveau_display.c
+++ b/drm/nouveau_display.c
@@ -592,7 +592,9 @@ nouveau_display_repin(struct drm_device *dev)
if (!nouveau_fb || !nouveau_fb->nvbo)
continue;
- nouveau_bo_pin(nouveau_fb->nvbo, TTM_PL_FLAG_VRAM);
+ ret = nouveau_bo_pin(nouveau_fb->nvbo, TTM_PL_FLAG_VRAM);
+ if (ret)
+ NV_ERROR(drm, "Could not pin framebuffer\n");
}
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {