when register_jprobe failed, we will try request_module. But some time request_module will failed such as the dccp is not exist. so check the request_module for avoiding do register_jprobe again. Signed-off-by: Wang Weidong <wangweidong1@xxxxxxxxxx> --- net/dccp/probe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/dccp/probe.c b/net/dccp/probe.c index 4c6bdf9..53158d2 100644 --- a/net/dccp/probe.c +++ b/net/dccp/probe.c @@ -157,9 +157,12 @@ static __init int setup_jprobe(void) int ret = register_jprobe(&dccp_send_probe); if (ret) { - request_module("dccp"); + if (request_module("dccp")) + goto out; ret = register_jprobe(&dccp_send_probe); } + +out: return ret; } -- 1.7.12 -- To unsubscribe from this list: send the line "unsubscribe dccp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html