[I810_AUDIO] 9/x: Fix drain_dac loop when signals_allowed == 0
diff mbox series

Message ID 20031123000202.GA9424@gondor.apana.org.au
State New, archived
Headers show
Series
  • [I810_AUDIO] 9/x: Fix drain_dac loop when signals_allowed == 0
Related show

Commit Message

Herbert Xu Nov. 23, 2003, 12:02 a.m. UTC
This patch fixes another bug in the drain_dac wait loop when it is
called with signals_allowed == 0.

Patch
diff mbox series

Index: kernel-source-2.4/drivers/sound/i810_audio.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.4/drivers/sound/i810_audio.c,v
retrieving revision 1.16
diff -u -r1.16 i810_audio.c
--- kernel-source-2.4/drivers/sound/i810_audio.c	22 Nov 2003 23:53:34 -0000	1.16
+++ kernel-source-2.4/drivers/sound/i810_audio.c	22 Nov 2003 23:55:57 -0000
@@ -1281,7 +1281,8 @@ 
 		 * instead of actually sleeping and waiting for an
 		 * interrupt to wake us up!
 		 */
-		__set_current_state(TASK_INTERRUPTIBLE);
+		__set_current_state(signals_allowed ?
+				    TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE);
 		spin_unlock_irqrestore(&state->card->lock, flags);
 
 		if (count <= 0)