Skip to contentSkip to conversation

FAILED: patch "[PATCH] drm/amdgpu: fix leaking fence in the pageflip code" failed to apply to 4.5-stable tree

PATCH [email protected] 1 participant 1 message Apr 13, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 4.5-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

Quoted 1 line

From ab7e9c137a85cf942c720498501d29719e61160c Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Christian=20K=C3=B6nig?= <[email protected]>
Date: Thu, 31 Mar 2016 13:05:51 +0200
Subject: [PATCH] drm/amdgpu: fix leaking fence in the pageflip code
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This fixes a memory leak when we can't register the callback on a fence.

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
index f0ed974bd4e0..3fb405b3a614 100644
@@ -57,7 +57,7 @@ static bool amdgpu_flip_handle_fence(struct amdgpu_flip_work *work,
 	if (!fence_add_callback(fence, &work->cb, amdgpu_flip_callback))
 		return true;
 
-	fence_put(*f);
+	fence_put(fence);
 	return false;
 }