Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86466
b: refs/heads/master
c: d9595a7
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Feb 27, 2008
1 parent b5fcd30 commit 974ef9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78374676efae525094aee45c0aab4bcab95ea9d1
refs/heads/master: d9595a7b9c777d45a74774f1428c263a0a47f4c0
5 changes: 2 additions & 3 deletions trunk/net/key/af_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -3807,17 +3807,16 @@ static int pfkey_init_proc(void)
{
struct proc_dir_entry *e;

e = create_proc_entry("pfkey", 0, init_net.proc_net);
e = proc_net_fops_create(&init_net, "pfkey", 0, &pfkey_proc_ops);
if (e == NULL)
return -ENOMEM;

e->proc_fops = &pfkey_proc_ops;
return 0;
}

static void pfkey_exit_proc(void)
{
remove_proc_entry("net/pfkey", NULL);
proc_net_remove(&init_net, "pfkey");
}
#else
static inline int pfkey_init_proc(void)
Expand Down

0 comments on commit 974ef9e

Please sign in to comment.