patch-2.4.0-test4 linux/drivers/isdn/divert/divert_procfs.c

Next file: linux/drivers/isdn/hysdn/hysdn_procconf.c
Previous file: linux/drivers/isdn/avmb1/capi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/drivers/isdn/divert/divert_procfs.c linux/drivers/isdn/divert/divert_procfs.c
@@ -199,6 +199,7 @@
 	struct divert_info *inf;
 	int flags;
 
+	lock_kernel();
 	save_flags(flags);
 	cli();
 	if_used--;
@@ -214,6 +215,7 @@
 			divert_info_head = divert_info_head->next;
 			kfree(inf);
 		}
+	unlock_kernel();
 	return (0);
 }				/* isdn_divert_close */
 

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