Skip to content

Commit

Permalink
sctp: fix error path in sctp_proc_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jun 17, 2008
1 parent 48c5732 commit 3d00fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3d00fb9

Please sign in to comment.