summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs2014-08-12 15:35:35 +0200
committerBen Skeggs2014-08-14 23:58:39 +0200
commitc9a6fd97335e59a113b53390579379c27fe64ed4 (patch)
tree508963944704489501f06f8ebf32ab9e69428143 /drivers/gpu
parentdrm/nouveau/nvif: fix dac load detect method definition (diff)
downloadkernel-qcow2-linux-c9a6fd97335e59a113b53390579379c27fe64ed4.tar.gz
kernel-qcow2-linux-c9a6fd97335e59a113b53390579379c27fe64ed4.tar.xz
kernel-qcow2-linux-c9a6fd97335e59a113b53390579379c27fe64ed4.zip
drm/nouveau: warn if we fail to re-pin fb on resume
Spotted by Coverity. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 1cc7b603c753..65b4fd53dd4e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/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) {