sctp: fix error path in sctp_proc_init
authorPavel Emelyanov <xemul@openvz.org>
Tue, 17 Jun 2008 22:54:14 +0000 (15:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2008 22:54:14 +0000 (15:54 -0700)
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>
net/sctp/protocol.c

index 23aaffb97ca31182018e4a64f45a0c3033dc4f32..98c6a882016a397947c5b0403212fb91ecbd5933 100644 (file)
@@ -119,7 +119,7 @@ static __init int sctp_proc_init(void)
        return 0;
 
 out_remaddr_proc_init:
-       sctp_remaddr_proc_exit();
+       sctp_assocs_proc_exit();
 out_assocs_proc_init:
        sctp_eps_proc_exit();
 out_eps_proc_init: