mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drm/nouveau: warn if we fail to re-pin fb on resume
Spotted by Coverity. Signed-off-by: Ben Skeggs <[email protected]>
This commit is contained in:
parent
8bd62a8327
commit
c9a6fd9733
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue