diff options
author | 2005-10-30 15:02:26 -0800 | |
---|---|---|
committer | 2005-10-30 17:37:21 -0800 | |
commit | e9543659715602e3180f00a227bb6db34141ac41 (patch) | |
tree | afcb9c04209060ae8df22c84ed3c85a859f27179 /kernel/kmod.c | |
parent | [PATCH] fuse: clean up dead code related to nfs exporting (diff) | |
download | wireguard-linux-e9543659715602e3180f00a227bb6db34141ac41.tar.xz wireguard-linux-e9543659715602e3180f00a227bb6db34141ac41.zip |
[PATCH] proc: fix of error path in proc_get_inode()
This patch fixes incorrect error path in proc_get_inode(), when module
can't be get due to being unloaded. When try_module_get() fails, this
function puts de(!) and still returns inode with non-getted de.
There are still unresolved known bugs in proc yet to be fixed:
- proc_dir_entry tree is managed without any serialization
- create_proc_entry() doesn't setup de->owner anyhow,
so setting it later manually is inatomic.
- looks like almost all modules do not care whether
it's de->owner is set...
Signed-Off-By: Denis Lunev <den@sw.ru>
Signed-Off-By: Kirill Korotaev <dev@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/kmod.c')
0 files changed, 0 insertions, 0 deletions