Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278322
b: refs/heads/master
c: d984e61
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 1, 2011
1 parent 16b1f29 commit 76a2a4e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: 65698610f58153eb7621be3fb4f57ca318b19c60
refs/heads/master: d984e6197ecd2babc1537f42dc1e676133005cda
14 changes: 12 additions & 2 deletions trunk/net/dccp/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,17 @@ static const struct file_operations dccpprobe_fops = {
.llseek = noop_llseek,
};

static __init int setup_jprobe(void)
{
int ret = register_jprobe(&dccp_send_probe);

if (ret) {
request_module("dccp");
ret = register_jprobe(&dccp_send_probe);
}
return ret;
}

static __init int dccpprobe_init(void)
{
int ret = -ENOMEM;
Expand All @@ -163,8 +174,7 @@ static __init int dccpprobe_init(void)
if (!proc_net_fops_create(&init_net, procname, S_IRUSR, &dccpprobe_fops))
goto err0;

try_then_request_module((ret = register_jprobe(&dccp_send_probe)) == 0,
"dccp");
ret = setup_jprobe();
if (ret)
goto err1;

Expand Down

0 comments on commit 76a2a4e

Please sign in to comment.