From: Dave Airlie Date: Mon, 13 Feb 2012 12:18:37 +0000 (+0000) Subject: drm/radeon/kms: drop lock in return path of radeon_fence_count_emitted. X-Git-Tag: accepted/tizen/common/20141203.182822~5261^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40e8c738785a25be585fcf661c6bb32f1a090ef2;p=platform%2Fkernel%2Flinux-arm64.git drm/radeon/kms: drop lock in return path of radeon_fence_count_emitted. Silly bad return path. Reported-and-Tested-by: Mikko Vinni Reviewed-by: Alex Deucher CC: stable@vger.kernel.org Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c index 64ea3dd..4bd36a3 100644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -364,8 +364,10 @@ int radeon_fence_count_emitted(struct radeon_device *rdev, int ring) int not_processed = 0; read_lock_irqsave(&rdev->fence_lock, irq_flags); - if (!rdev->fence_drv[ring].initialized) + if (!rdev->fence_drv[ring].initialized) { + read_unlock_irqrestore(&rdev->fence_lock, irq_flags); return 0; + } if (!list_empty(&rdev->fence_drv[ring].emitted)) { struct list_head *ptr;