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

Next file: linux/drivers/usb/Config.in
Previous file: linux/drivers/sound/msnd_pinnacle.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -164,7 +164,7 @@
 #define MODULEPROCSTRING "Driver compiled into kernel"
 #endif
 
-	down(&uts_sem);	
+	down_read(&uts_sem);	
 
 	len = sprintf(buffer, "OSS/Free:" SOUND_VERSION_STRING "\n"
 		      "Load type: " MODULEPROCSTRING "\n"
@@ -172,7 +172,7 @@
 		      "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);
+	up_read(&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 (who was at: slshen@lbl.gov)