Browse Source

sctp: fix error path in sctp_proc_init

After the sctp_remaddr_proc_init failed, the proper rollback is
not the sctp_remaddr_proc_exit, but the sctp_assocs_proc_exit.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Pavel Emelyanov 17 years ago
parent
commit
3d00fb9eb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/sctp/protocol.c

+ 1 - 1
net/sctp/protocol.c

@@ -119,7 +119,7 @@ static __init int sctp_proc_init(void)
 	return 0;
 	return 0;
 
 
 out_remaddr_proc_init:
 out_remaddr_proc_init:
-	sctp_remaddr_proc_exit();
+	sctp_assocs_proc_exit();
 out_assocs_proc_init:
 out_assocs_proc_init:
 	sctp_eps_proc_exit();
 	sctp_eps_proc_exit();
 out_eps_proc_init:
 out_eps_proc_init: