Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 321efff7 authored by Olaf Kirch's avatar Olaf Kirch Committed by David S. Miller
Browse files

[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: default avatarOlaf Kirch <okir@suse.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f0e82fd0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1342,10 +1342,10 @@ static int __init inet_init(void)
	rc = 0;
	rc = 0;
out:
out:
	return rc;
	return rc;
out_unregister_tcp_proto:
	proto_unregister(&tcp_prot);
out_unregister_udp_proto:
out_unregister_udp_proto:
	proto_unregister(&udp_prot);
	proto_unregister(&udp_prot);
out_unregister_tcp_proto:
	proto_unregister(&tcp_prot);
	goto out;
	goto out;
}
}