Skip to contentSkip to conversation

drm/ttm: fix memory leak in ttm_bo_mem_space

PATCH New Christian König 1 participant 1 message Sep 13, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/ttm: fix memory leak in ttm_bo_mem_space

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

---
 drivers/gpu/drm/ttm/ttm_bo.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/ttm/ttm_bo.c +1 -0
index 2899702139fb..0faaed4ab7f1 100644
@@ -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) {
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel