提交 838de39f 编写于 作者: G Gustavo Padovan 提交者: Daniel Vetter

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: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476975005-30441-3-git-send-email-gustavo@padovan.org
上级 7fb71c8f
...@@ -663,6 +663,10 @@ void drm_event_cancel_free(struct drm_device *dev, ...@@ -663,6 +663,10 @@ void drm_event_cancel_free(struct drm_device *dev,
list_del(&p->pending_link); list_del(&p->pending_link);
} }
spin_unlock_irqrestore(&dev->event_lock, flags); spin_unlock_irqrestore(&dev->event_lock, flags);
if (p->fence)
fence_put(p->fence);
kfree(p); kfree(p);
} }
EXPORT_SYMBOL(drm_event_cancel_free); EXPORT_SYMBOL(drm_event_cancel_free);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册