net: sysctl: cleanup net_sysctl_init error exit paths
Subsystems (2)
PATCH 1/1 net: sysctl: cleanup net_sysctl_init error exit paths
Unwind net_sysctl_init error exit goto spaghetti code
--- net/sysctl_net.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
net/sysctl_net.c +4 -6
@@ -104,14 +104,12 @@ __init int net_sysctl_init(void)if (!net_header) goto out; ret =register_pernet_subsys (&sysctl_pernet_ops); -if (ret) - goto out1; -out: -return ret; -out1: +if (!ret) + goto out;unregister_sysctl_table (net_header); net_header =NULL ; - goto out; +out: +return ret; } struct ctl_table_header *register_net_sysctl(struct net *net,
Signature · 1 line
2.7.4
David Miller
maintainerFrom: "George G. Davis" <[email protected]>
Date: Thu, 16 May 2019 11:23:08 -0400
Quoted 4 lines
Unwind
net_sysctl_initerror exit goto spaghetti codeSuggested-by Joshua Frkuska <[email protected]>Signed-off-by George G. Davis <[email protected]>
Cleanups are not appropriate until the net-next tree opens back up.
So please resubmit at that time.
Thank you.
Hello David,
Quoted 11 lines · David Miller
From: "George G. Davis" <[email protected]>
Date: Thu, 16 May 2019 11:23:08 -0400Quoted 4 lines
Unwind
net_sysctl_initerror exit goto spaghetti codeSuggested-by Joshua Frkuska <[email protected]>Signed-off-by George G. Davis <[email protected]>Cleanups are not appropriate until the net-next tree opens back up.
So please resubmit at that time.
I fear that I may be distracted by other shiny objects by then but I'll make a reminder and try to resubmit during the next merge window.
Thanks!
Quoted 2 lines
Thank you.
Signature · 2 lines
Regards, George
Hello David,
Quoted 11 lines · George G. Davis
Hello David,
Quoted 8 lines · David Miller
From: "George G. Davis" <[email protected]>
Date: Thu, 16 May 2019 11:23:08 -0400Quoted 4 lines
Unwind
net_sysctl_initerror exit goto spaghetti codeSuggested-by Joshua Frkuska <[email protected]>Signed-off-by George G. Davis <[email protected]>
Quoted 6 lines
Quoted 3 lines
Cleanups are not appropriate until the net-next tree opens back up.
So please resubmit at that time.
I fear that I may be distracted by other shiny objects by then but I'll make a reminder and try to resubmit during the next merge window.
Since the "Linux 5.2" kernel has been released [1], I'm guessing that the net-next merge window is open now? If yes, the patch remains unchanged since my initial post. Please consider applying or let me know when to resubmit when the net-next merge window is again open.
TIA!
Quoted 9 lines
Thanks!
Quoted 2 lines
Thank you.
Signature · 2 lines
Regards, George
Signature · 3 lines
Regards, George [1] https://lwn.net/Articles/792995/
Hello David,
Quoted 18 lines · George G. Davis
Hello David,
Quoted 15 lines · George G. Davis
Hello David,
Quoted 11 lines · David Miller
From: "George G. Davis" <[email protected]>
Date: Thu, 16 May 2019 11:23:08 -0400Quoted 4 lines
Unwind
net_sysctl_initerror exit goto spaghetti codeSuggested-by Joshua Frkuska <[email protected]>Signed-off-by George G. Davis <[email protected]>Cleanups are not appropriate until the net-next tree opens back up.
So please resubmit at that time.
Quoted 7 lines
Quoted 2 lines
I fear that I may be distracted by other shiny objects by then but I'll make a reminder and try to resubmit during the next merge window.
Since the "Linux 5.2" kernel has been released [1], I'm guessing that the net-next merge window is open now? If yes, the patch remains unchanged since my initial post. Please consider applying or let me know when to resubmit when the net-next merge window is again open.
Ping, "Linux 5.3" kernel has been released [1] and it appears that the 5.4 merge window is open. The patch [2] remains unchanged since my initial post. Please consider applying it.
Thanks!
Signature · 4 lines
Regards, George [1] https://lwn.net/Articles/799250/ [2] https://lore.kernel.org/patchwork/patch/1074969/
Le 17/09/2019 à 17:53, George G. Davis a écrit :
[snip]
Quoted 3 lines
Ping, "Linux 5.3" kernel has been released [1] and it appears that the 5.4 merge window is open. The patch [2] remains unchanged since my initial post. Please consider applying it.
net-next is closed:
http://vger.kernel.org/~davem/net-next.html
You will have to resend the patch when net-next opens.
Hello Nicolas,
Quoted 10 lines · Nicolas Dichtel
Le 17/09/2019 à 17:53, George G. Davis a écrit :
[snip]Quoted 3 lines
Ping, "Linux 5.3" kernel has been released [1] and it appears that the 5.4 merge window is open. The patch [2] remains unchanged since my initial post. Please consider applying it.
net-next is closed:
http://vger.kernel.org/~davem/net-next.htmlYou will have to resend the patch when net-next opens.
Thanks! I'll watch for the "net-next is OPEN" announcment and resubmit then.
Signature · 2 lines
Regards, George