patch-2.3.29 linux/fs/proc/proc_tty.c

Next file: linux/fs/proc/procfs_syms.c
Previous file: linux/fs/proc/proc_misc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/fs/proc/proc_tty.c linux/fs/proc/proc_tty.c
@@ -161,10 +161,9 @@
 	if (!ent)
 		return;
 		
-	proc_unregister(proc_tty_driver, ent->low_ino);
+	remove_proc_entry(driver->driver_name, proc_tty_driver);
 	
 	driver->proc_entry = 0;
-	kfree(ent);
 }
 
 /*

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