Commit c9a6fd97 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: warn if we fail to re-pin fb on resume

Spotted by Coverity.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 8bd62a83
...@@ -592,7 +592,9 @@ nouveau_display_repin(struct drm_device *dev) ...@@ -592,7 +592,9 @@ nouveau_display_repin(struct drm_device *dev)
if (!nouveau_fb || !nouveau_fb->nvbo) if (!nouveau_fb || !nouveau_fb->nvbo)
continue; 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) { list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment