summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/mga_dma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/mga_dma.c b/linux/mga_dma.c
index 0c15c71f..bc9735c7 100644
--- a/linux/mga_dma.c
+++ b/linux/mga_dma.c
@@ -1256,7 +1256,9 @@ static void mga_dma_service( int irq, void *device, struct pt_regs *regs )
MGA_WRITE( MGA_ICLEAR, MGA_SOFTRAPICLR );
+ spin_lock( &primary->lock );
tail = primary->tail + dev_priv->primary->offset;
+ spin_unlock( &primary->lock );
DRM_DEBUG( " *** wrap interrupt:\n" );
DRM_DEBUG( " head = 0x%06x\n", head - dev_priv->primary->offset );