]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix error handling in get_node
authorZack Rusin <zackr@vmware.com>
Fri, 25 Sep 2020 15:54:10 +0000 (11:54 -0400)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 30 Sep 2020 03:44:28 +0000 (05:44 +0200)
commit23ae52bb8bab8114ded31ad073c7714f712af4b5
tree9d149c70167f5930593fbd687915c3cfd2d0568d
parent47baade2e61311823a6410984052b21729468ddf
drm/vmwgfx: Fix error handling in get_node

ttm_mem_type_manager_func.get_node was changed to return -ENOSPC
instead of setting the node pointer to NULL. Unfortunately
vmwgfx still had two places where it was explicitly converting
-ENOSPC to 0 causing regressions. This fixes those spots by
allowing -ENOSPC to be returned. That seems to fix recent
regressions with vmwgfx.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Sigend-off-by: Roland Scheidegger <sroland@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
drivers/gpu/drm/vmwgfx/vmwgfx_thp.c