diff options
author | Zack Rusin <zackr@vmware.com> | 2020-09-25 18:54:10 +0300 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2020-09-30 06:44:28 +0300 |
commit | f54c4442893b8dfbd3aff8e903c54dfff1aef990 (patch) | |
tree | 9d149c70167f5930593fbd687915c3cfd2d0568d /drivers/gpu/drm/vmwgfx/vmwgfx_thp.c | |
parent | a1b8638ba1320e6684aa98233c15255eb803fac7 (diff) | |
download | linux-f54c4442893b8dfbd3aff8e903c54dfff1aef990.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_thp.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_thp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c b/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c index b7c816ba7166..c8b9335bccd8 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c @@ -95,7 +95,7 @@ found_unlock: mem->start = node->start; } - return 0; + return ret; } |