Commit db318d7a authored by Michel Dänzer's avatar Michel Dänzer Committed by Dave Airlie

drm/radeon: Unreference GEM object outside of spinlock in page flip error path.

Should fix https://bugzilla.redhat.com/show_bug.cgi?id=726277 .
Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
cc: stable@kernel.org
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 87463ff8
......@@ -473,8 +473,8 @@ static int radeon_crtc_page_flip(struct drm_crtc *crtc,
spin_lock_irqsave(&dev->event_lock, flags);
radeon_crtc->unpin_work = NULL;
unlock_free:
drm_gem_object_unreference_unlocked(old_radeon_fb->obj);
spin_unlock_irqrestore(&dev->event_lock, flags);
drm_gem_object_unreference_unlocked(old_radeon_fb->obj);
radeon_fence_unref(&work->fence);
kfree(work);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment