diff options
| author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-12 09:35:35 -0400 |
|---|---|---|
| committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-14 17:58:39 -0400 |
| commit | c9a6fd97335e59a113b53390579379c27fe64ed4 (patch) | |
| tree | 508963944704489501f06f8ebf32ab9e69428143 | |
| parent | 8bd62a8327d84e622c61faeb969164bfa370d91e (diff) | |
drm/nouveau: warn if we fail to re-pin fb on resume
Spotted by Coverity.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_display.c | 4 |
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) | |||
| 592 | if (!nouveau_fb || !nouveau_fb->nvbo) | 592 | if (!nouveau_fb || !nouveau_fb->nvbo) |
| 593 | continue; | 593 | continue; |
| 594 | 594 | ||
| 595 | nouveau_bo_pin(nouveau_fb->nvbo, TTM_PL_FLAG_VRAM); | 595 | ret = nouveau_bo_pin(nouveau_fb->nvbo, TTM_PL_FLAG_VRAM); |
| 596 | if (ret) | ||
| 597 | NV_ERROR(drm, "Could not pin framebuffer\n"); | ||
| 596 | } | 598 | } |
| 597 | 599 | ||
| 598 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { | 600 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { |
