summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMichel Dänzer <michel@daenzer.net>2011-09-13 11:29:12 +0200
committerDave Airlie <airlied@redhat.com>2011-09-14 13:36:39 +0100
commitdb318d7a8a910657f10ffdf223c971af20a9b09c (patch)
treeaeb88d1853558ecbae1c87c2b4e8d0bb6866676d /drivers/gpu
parent87463ff83bcda210d8f0ae440bd64d1548f852e7 (diff)
downloadblackbird-op-linux-db318d7a8a910657f10ffdf223c971af20a9b09c.tar.gz
blackbird-op-linux-db318d7a8a910657f10ffdf223c971af20a9b09c.zip
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: Michel Dänzer <michel.daenzer@amd.com> cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 6cc17fb96a57..6adb3e58affd 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -473,8 +473,8 @@ pflip_cleanup:
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);
OpenPOWER on IntegriCloud