aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/probe.c')
-rw-r--r--net/sctp/probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/probe.c b/net/sctp/probe.c
index dd507f5ca8e7..ad0dba870341 100644
--- a/net/sctp/probe.c
+++ b/net/sctp/probe.c
@@ -208,7 +208,7 @@ static __init int sctpprobe_init(void)
208 return 0; 208 return 0;
209 209
210remove_proc: 210remove_proc:
211 proc_net_remove(&init_net, procname); 211 remove_proc_entry(procname, init_net.proc_net);
212free_kfifo: 212free_kfifo:
213 kfifo_free(&sctpw.fifo); 213 kfifo_free(&sctpw.fifo);
214 return ret; 214 return ret;
@@ -217,7 +217,7 @@ free_kfifo:
217static __exit void sctpprobe_exit(void) 217static __exit void sctpprobe_exit(void)
218{ 218{
219 kfifo_free(&sctpw.fifo); 219 kfifo_free(&sctpw.fifo);
220 proc_net_remove(&init_net, procname); 220 remove_proc_entry(procname, init_net.proc_net);
221 unregister_jprobe(&sctp_recv_probe); 221 unregister_jprobe(&sctp_recv_probe);
222} 222}
223 223