]> git.hungrycats.org Git - linux/commit
[PATCH] prevent oops from read of proc entry for tty drivers
authorStephen Hemminger <shemminger@osdl.org>
Tue, 25 Nov 2003 23:01:31 +0000 (15:01 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 25 Nov 2003 23:01:31 +0000 (15:01 -0800)
commit0dbccfbff3046fee234c3ce41a41f5faea0fa95e
tree92d42dd40bb1067ec9ac1ca1facce56a15926e83
parentf86027d75d3c879c3f7a054a6e995a3a1974ebe3
[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.
fs/proc/proc_tty.c