diff options
author | Olaf Kirch <okir@suse.de> | 2006-09-27 19:33:45 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 21:01:48 -0400 |
commit | 321efff7c3b7a26fa0522cb12b2af2ac82c05f1e (patch) | |
tree | 4cf5ef42a015559aa063500da21e5e8559dc4746 /net/ipv4 | |
parent | f0e82fd0e5ad8494985ddfca7de89a800cf96fb8 (diff) |
[IPV4]: Fix order in inet_init failure path.
This is just a minor buglet I came across by accident - when inet_init
fails to register raw_prot, it jumps to out_unregister_udp_proto which
should unregister UDP _and_ TCP.
Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/af_inet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 250a02b23e4e..ea5844832683 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1342,10 +1342,10 @@ static int __init inet_init(void) | |||
1342 | rc = 0; | 1342 | rc = 0; |
1343 | out: | 1343 | out: |
1344 | return rc; | 1344 | return rc; |
1345 | out_unregister_tcp_proto: | ||
1346 | proto_unregister(&tcp_prot); | ||
1347 | out_unregister_udp_proto: | 1345 | out_unregister_udp_proto: |
1348 | proto_unregister(&udp_prot); | 1346 | proto_unregister(&udp_prot); |
1347 | out_unregister_tcp_proto: | ||
1348 | proto_unregister(&tcp_prot); | ||
1349 | goto out; | 1349 | goto out; |
1350 | } | 1350 | } |
1351 | 1351 | ||