patch-2.3.29 linux/kernel/sysctl.c

Next file: linux/mm/bootmem.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/kernel/sysctl.c linux/kernel/sysctl.c
@@ -584,13 +584,12 @@
 				continue;
 		}
 
-		/* Don't unregoster proc entries that are still being used.. */
+		/* Don't unregister proc entries that are still being used.. */
 		if (de->count)
 			continue;
 
-		proc_unregister(root, de->low_ino);
 		table->de = NULL;
-		kfree(de);
+		remove_proc_entry(table->procname, root);
 	}
 }
 

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