From fe0488aa13c35952b9f3f37ff2c74b6b858e8e73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 6 Jul 2018 16:15:31 -0400 Subject: [PATCH] amdgpu: don't call add_handle_to_table for KMS BO exports Reviewed-by: Junwei Zhang --- amdgpu/amdgpu_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index 9e37b14..9e7f958 100644 --- a/amdgpu/amdgpu_bo.c +++ b/amdgpu/amdgpu_bo.c @@ -240,7 +240,7 @@ int amdgpu_bo_export(amdgpu_bo_handle bo, return 0; case amdgpu_bo_handle_type_kms: - amdgpu_add_handle_to_table(bo); + /* Don't add the handle to the hash table. It can't be reimported. */ *shared_handle = bo->handle; return 0; -- 2.7.4