Fix order in inet_init failure path.
Subsystems (2)
PATCH 1/1 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 <[email protected]>
net/ipv4/af_inet.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/ipv4/af_inet.c +2 -2
@@ -1345,10 +1345,10 @@ static int __init inet_init(void) rc =0 ; out:return rc; -out_unregister_tcp_proto: -proto_unregister (&tcp_prot); out_unregister_udp_proto:proto_unregister (&udp_prot); +out_unregister_tcp_proto: +proto_unregister (&tcp_prot); goto out; }
Signature · 2 lines
Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [email protected] | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax
From: Olaf Kirch <[email protected]>
Date: Tue, 26 Sep 2006 16:17:09 +0200
Quoted 5 lines
This is just a minor buglet I came across by accident - when
inet_initfails to registerraw_prot, it jumps toout_unregister_udp_protowhich should unregister UDP _and_ TCP.Signed-off-by Olaf Kirch <[email protected]>
Applied, thanks Olaf.