drm: Branch 'master'

[email protected] (GitLab Mirror) Tue, 15 Oct 2019 18:01:55 +0000 (UTC)
Newsgroups gmane.comp.video.dri.patches
Message-ID <[email protected]>
 tests/amdgpu/bo_tests.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 3b0a41d93b91fafd1e644b509d72c3abf82372a3
Author: Nirmoy Das <[email protected]>
Date:   Mon Oct 14 16:53:36 2019 +0200

    test/amdgpu: don't free unused bo handle
    
    Signed-off-by: Nirmoy Das <[email protected]>
    Reviewed-by: Eric Engestrom <[email protected]>

diff --git a/tests/amdgpu/bo_tests.c b/tests/amdgpu/bo_tests.c
index 7cff4cf7..4c11665a 100644
--- a/tests/amdgpu/bo_tests.c
+++ b/tests/amdgpu/bo_tests.c
@@ -267,7 +267,6 @@ static void amdgpu_memory_alloc(void)
 
 static void amdgpu_mem_fail_alloc(void)
 {
-	amdgpu_bo_handle bo;
 	int r;
 	struct amdgpu_bo_alloc_request req = {0};
 	amdgpu_bo_handle buf_handle;
@@ -282,7 +281,7 @@ static void amdgpu_mem_fail_alloc(void)
 	CU_ASSERT_EQUAL(r, -ENOMEM);
 
 	if (!r) {
-		r = amdgpu_bo_free(bo);
+		r = amdgpu_bo_free(buf_handle);
 		CU_ASSERT_EQUAL(r, 0);
 	}
 }


--