drm/ttm: Sync ttm_bo_man_put_node() with Linux 3.18
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 17 Mar 2019 14:06:06 +0000 (15:06 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 17 Mar 2019 14:06:38 +0000 (15:06 +0100)
sys/dev/drm/ttm/ttm_bo_manager.c

index c0753b0..c24ed8f 100644 (file)
@@ -95,8 +95,10 @@ static void ttm_bo_man_put_node(struct ttm_mem_type_manager *man,
 
        if (mem->mm_node) {
                lockmgr(&rman->lock, LK_EXCLUSIVE);
-               drm_mm_put_block(mem->mm_node);
+               drm_mm_remove_node(mem->mm_node);
                lockmgr(&rman->lock, LK_RELEASE);
+
+               kfree(mem->mm_node);
                mem->mm_node = NULL;
        }
 }