[PATCH][TRIVIAL] proc_tty_unregister_driver fix

From: Rik van Riel
Date: Mon Oct 13 2003 - 13:12:56 EST


Make sure to unregister the driver with the same name it
was registered with. Apparently some drivers like to change
driver->driver_name between the procfs registration and the
unregistration, fixes RH bug #49426

diff -urNp linux-5110/fs/proc/proc_tty.c linux-10010/fs/proc/proc_tty.c
--- linux-5110/fs/proc/proc_tty.c 2000-04-22 00:17:57.000000000 +0200
+++ linux-10010/fs/proc/proc_tty.c
@@ -161,7 +161,7 @@ void proc_tty_unregister_driver(struct t
if (!ent)
return;

- remove_proc_entry(driver->driver_name, proc_tty_driver);
+ remove_proc_entry(ent->name, proc_tty_driver);

driver->proc_entry = 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/