Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 838de39f authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Daniel Vetter
Browse files

drm/fence: release fence reference when canceling event



If the event gets canceled we also need to put away the fence
reference it holds.

Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476975005-30441-3-git-send-email-gustavo@padovan.org
parent 7fb71c8f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -663,6 +663,10 @@ void drm_event_cancel_free(struct drm_device *dev,
		list_del(&p->pending_link);
	}
	spin_unlock_irqrestore(&dev->event_lock, flags);

	if (p->fence)
		fence_put(p->fence);

	kfree(p);
}
EXPORT_SYMBOL(drm_event_cancel_free);