lkml.org 
[lkml]   [2003]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][TRIVIAL] proc_tty_unregister_driver fix
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.015 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site