Skip to contentSkip to conversation

New: alsa gus max driver destroying data in filesystems

Bugme-new Jaroslav Kysela 1 participant 1 message Dec 20, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line · Andrew Morton

umm, we're calling schedule() from a hard IRQ.

Oops. It wasn't intented. The patch bellow should solve this problem. Andrew, what's the best method to send you all the new ALSA code? We have many fixes for the PCM OSS emulation code and various drivers were updated.

Our BK repository is at http://linux-sound.bkbits.net/linux-sound.

Index: gus_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gus_pcm.c,v retrieving revision 1.17

gus_pcm.c +5 -3
diff -u -r1.17 gus_pcm.c
@@ -334,9 +334,11 @@
 					snd_gf1_poke(gus, pos++, *buf++ ^ invert);
 			}
 		}
-		schedule_timeout(1);
-		if (signal_pending(current))
-			return -EAGAIN;
+		if (count > 0 && !in_interrupt()) {
+			schedule_timeout(1);
+			if (signal_pending(current))
+				return -EAGAIN;
+		}
 	}
 	return 0;
 }
Quoted 6 lines

Date: Fri, 19 Dec 2003 14:39:34 -0800
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 1708] New: alsa gus max driver destroying data in filesystems

Quoted 8 lines

http://bugme.osdl.org/show_bug.cgi?id=1708

Summary: alsa gus max driver destroying data in filesystems
Kernel Version: 2.6.0
Status: NEW
Severity: high
Owner: [email protected]
Submitter: [email protected]

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click