amdgpu: fix missing deinit on vamgr_32
authormonk.liu <monk.liu@amd.com>
Mon, 31 Aug 2015 07:06:58 +0000 (15:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Sep 2015 13:52:12 +0000 (09:52 -0400)
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: monk.liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
amdgpu/amdgpu_device.c

index 75b12e2..e5a923e 100644 (file)
@@ -132,6 +132,8 @@ static void amdgpu_device_free_internal(amdgpu_device_handle dev)
 {
        amdgpu_vamgr_deinit(dev->vamgr);
        free(dev->vamgr);
+       amdgpu_vamgr_deinit(dev->vamgr_32);
+       free(dev->vamgr_32);
        util_hash_table_destroy(dev->bo_flink_names);
        util_hash_table_destroy(dev->bo_handles);
        pthread_mutex_destroy(&dev->bo_table_mutex);