patch-2.3.99-pre3 linux/net/khttpd/security.c

Next file: linux/net/sched/sch_atm.c
Previous file: linux/net/khttpd/main.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/net/khttpd/security.c linux/net/khttpd/security.c
@@ -113,10 +113,11 @@
 #endif
 	/* Rule no. 3 -- Does the file exist ? */
 
-	
+	lock_kernel();
 		
 	filp = filp_open(Filename, 0, O_RDONLY, NULL);
 	
+	unlock_kernel();
 	
 	if ((IS_ERR(filp))||(filp==NULL)||(filp->f_dentry==NULL))
 	{

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