diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-10-20 12:50:03 -0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-10-21 15:35:07 +0200 |
commit | 838de39fc9516470b1410cc068c7f41daec69265 (patch) | |
tree | eb1e05e1fa211e724b5d699ec326b19d7842d429 /drivers/gpu/drm/drm_fops.c | |
parent | 7fb71c8f4f45afe73d307181be87c877447d0e47 (diff) | |
download | linux-838de39fc9516470b1410cc068c7f41daec69265.tar.bz2 |
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: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476975005-30441-3-git-send-email-gustavo@padovan.org
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index e84faecf5225..8bed5f459182 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c @@ -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); |