From: Simon Farnsworth Date: Mon, 23 Jul 2007 08:32:01 +0000 (+1000) Subject: drm/via: Fix dmablit when blit queue is full X-Git-Tag: MMI-PSA29.97-13-9~40648^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22c806c23fe17f9c744d19edfe650cfd6496bc2a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/via: Fix dmablit when blit queue is full fd.o bug 11542 Acked-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- diff --git a/drivers/char/drm/via_dmablit.c b/drivers/char/drm/via_dmablit.c index 832de1d9ba7e..3dd1ed3d1bf5 100644 --- a/drivers/char/drm/via_dmablit.c +++ b/drivers/char/drm/via_dmablit.c @@ -560,7 +560,7 @@ via_init_dmablit(struct drm_device *dev) blitq->head = 0; blitq->cur = 0; blitq->serviced = 0; - blitq->num_free = VIA_NUM_BLIT_SLOTS; + blitq->num_free = VIA_NUM_BLIT_SLOTS - 1; blitq->num_outstanding = 0; blitq->is_active = 0; blitq->aborting = 0;