[PATCH] drm/ttm: fix memory leak in ttm_bo_mem_space

Christian König ckoenig.leichtzumerken at gmail.com
Fri Sep 13 07:30:10 UTC 2019


Fix accidential removed line in commit 726b7d4170e5 "drm/ttm: return -EBUSY on pipelining with no_gpu_wait".

Signed-off-by: Christian König <christian.koenig at amd.com>
---
 drivers/gpu/drm/ttm/ttm_bo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 2899702139fb..0faaed4ab7f1 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -1131,6 +1131,7 @@ int ttm_bo_mem_space(struct ttm_buffer_object *bo,
 
 			goto error;
 		}
+		return 0;
 	}
 
 	for (i = 0; i < placement->num_busy_placement; ++i) {
-- 
2.17.1



More information about the dri-devel mailing list