diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2003-11-25 15:01:31 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-11-25 15:01:31 -0800 |
| commit | 0dbccfbff3046fee234c3ce41a41f5faea0fa95e (patch) | |
| tree | 92d42dd40bb1067ec9ac1ca1facce56a15926e83 | |
| parent | f86027d75d3c879c3f7a054a6e995a3a1974ebe3 (diff) | |
[PATCH] prevent oops from read of proc entry for tty drivers
There are /proc handles there setup by proc_tty_register_driver, but there is
no module ownership association, so anything that reads after module unload
will blow.
The trivial fix is to propagate the owner of tty_driver to proc entry.
| -rw-r--r-- | fs/proc/proc_tty.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c index f0f93a00ea4c..df25a6ae0af5 100644 --- a/fs/proc/proc_tty.c +++ b/fs/proc/proc_tty.c @@ -198,6 +198,7 @@ void proc_tty_register_driver(struct tty_driver *driver) return; ent->read_proc = driver->read_proc; ent->write_proc = driver->write_proc; + ent->owner = driver->owner; ent->data = driver; driver->proc_entry = ent; |
