I discovered 64 bytes memory leak when qxl unbind is executed.

Checked with echo scan > /sys/kernel/debug/kmemleak

You need to apply
[PATCH] drm/qxl: fix use-after-free in qxl_irq_handler on PCI
before test it.

Assisted-by: OpenCode:1.17.8-Big Pickle
Signed-off-by: Óscar Megía López <[email protected]>
---
 drivers/gpu/drm/ttm/ttm_pool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c
index 278bbe7a11ad..15191efe9f7e 100644
--- a/drivers/gpu/drm/ttm/ttm_pool.c
+++ b/drivers/gpu/drm/ttm/ttm_pool.c
@@ -401,6 +401,7 @@ static void ttm_pool_type_fini(struct ttm_pool_type *pt)
 
        list_lru_walk(&pt->pages, pool_move_to_dispose_list, &dispose, 
LONG_MAX);
        ttm_pool_dispose_list(pt, &dispose);
+       list_lru_destroy(&pt->pages);
 }
 
 /* Return the pool_type to use for the given caching and order */
-- 
2.54.0

Reply via email to