On Mon, Feb 13, 2012 at 7:18 AM, Dave Airlie <airlied@xxxxxxxxx> wrote: > From: Dave Airlie <airlied@xxxxxxxxxx> > > Reported-by: Mikko Vinni > Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx> Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> > --- > drivers/gpu/drm/radeon/radeon_fence.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > 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; > -- > 1.7.7.6 > > _______________________________________________ > dri-devel mailing list > dri-devel@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel