From e7ba83bd6f3a1ab9981948a64e9a09940d25e281 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Sat, 8 Jan 2005 23:28:27 +0000 Subject: Fixed off-by-one error in savage_bci_wait_fifo_shadow. --- shared-core/savage_bci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared-core') diff --git a/shared-core/savage_bci.c b/shared-core/savage_bci.c index e5f00391..de15e2b0 100644 --- a/shared-core/savage_bci.c +++ b/shared-core/savage_bci.c @@ -48,7 +48,7 @@ savage_bci_wait_fifo_shadow(drm_savage_private_t *dev_priv, unsigned int n) for (i = 0; i < SAVAGE_DEFAULT_USEC_TIMEOUT; i++) { status = dev_priv->status_ptr[0]; - if ((status & mask) <= threshold) + if ((status & mask) < threshold) return 0; DRM_UDELAY(1); } -- cgit v1.2.3