]> git.baikalelectronics.ru Git - kernel.git/commit
[AF_KEY]: Fix oops by converting to proc_net_*().
authorDavid S. Miller <davem@davemloft.net>
Wed, 27 Feb 2008 06:20:44 +0000 (22:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Feb 2008 06:23:31 +0000 (22:23 -0800)
commit279a835b9bd6364cb8c310d22c839c34d2026dd0
tree1151c7d17fe6b95f99134d8689876cdae8f491e4
parentec1c69e71a60612c73e22f9b118b65ac1205d8be
[AF_KEY]: Fix oops by converting to proc_net_*().

To make sure the procfs visibility occurs after the ->proc_fs ops are
setup, use proc_net_fops_create() and proc_net_remove().

This also fixes an OOPS after module unload in that the name string
for remove was wrong, so it wouldn't actually be removed.  That bug
was introduced by commit cab156b25f2cc0edf06e411939808b0680764d9d
("[KEY]: Clean up proc files creation a bit.")

Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c