patch-2.1.106 linux/drivers/sound/soundcard.c

Next file: linux/drivers/sound/v_midi.c
Previous file: linux/drivers/sound/msnd_pinnacle.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.105/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -153,13 +153,16 @@
 #else
 #define MODULEPROCSTRING "Driver compiled into kernel"
 #endif
-	
+
+	down(&uts_sem);	
+
 	len = sprintf(buffer, "OSS/Free:" SOUND_VERSION_STRING "\n"
 		      "Load type: " MODULEPROCSTRING "\n"
 		      "Kernel: %s %s %s %s %s\n"
 		      "Config options: %x\n\nInstalled drivers: \n", 
 		      system_utsname.sysname, system_utsname.nodename, system_utsname.release, 
 		      system_utsname.version, system_utsname.machine, SELECTED_SOUND_OPTIONS);
+	up(&uts_sem);
 	
 	for (i = 0; (i < num_sound_drivers) && (pos <= offset + length); i++) {
 		if (!sound_drivers[i].card_type)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov