patch-2.4.0-test4 linux/drivers/telephony/ixj.c

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

diff -u --recursive --new-file v2.4.0-test3/linux/drivers/telephony/ixj.c linux/drivers/telephony/ixj.c
@@ -50,6 +50,7 @@
 #include <linux/timer.h>
 #include <linux/delay.h>
 #include <linux/pci.h>
+#include <linux/smp_lock.h>
 
 #include <asm/io.h>
 #include <asm/segment.h>
@@ -1056,6 +1057,7 @@
 	if (ixjdebug > 0)
 		printk(KERN_INFO "Closing board %d\n", NUM(inode->i_rdev));
 
+	lock_kernel();
 	daa_set_mode(board, SOP_PU_SLEEP);
 	ixj_set_port(board, PORT_POTS);
 	aec_stop(board);
@@ -1189,6 +1191,7 @@
 	j->rec_frame_size = j->play_frame_size = 0;
 	ixj_fasync(-1, file_p, 0);	// remove from list of async notification
 
+	unlock_kernel();
 	return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)