Re: [PATCH v2] sctp: use proc_remove_subtree()

2018-03-17 Thread David Miller
From: Al Viro Date: Fri, 16 Mar 2018 23:32:51 + > use proc_remove_subtree() for subtree removal, both on setup failure > halfway through and on teardown. No need to make simple things > complex... > > Signed-off-by: Al Viro Applied,

Re: sctp: use proc_remove_subtree()

2018-03-16 Thread Al Viro
On Fri, Mar 16, 2018 at 12:44:15PM -0400, David Miller wrote: > From: Al Viro > Date: Wed, 14 Mar 2018 20:51:19 + > > > On Wed, Mar 14, 2018 at 08:46:21PM +, Al Viro wrote: > >> use proc_remove_subtree() for subtree removal, both on setup failure > >> halfway

[PATCH v2] sctp: use proc_remove_subtree()

2018-03-16 Thread Al Viro
use proc_remove_subtree() for subtree removal, both on setup failure halfway through and on teardown. No need to make simple things complex... Signed-off-by: Al Viro --- include/net/sctp/sctp.h | 11 +-- net/sctp/objcnt.c | 8 net/sctp/proc.c

Re: sctp: use proc_remove_subtree()

2018-03-16 Thread David Miller
From: Al Viro Date: Wed, 14 Mar 2018 20:51:19 + > On Wed, Mar 14, 2018 at 08:46:21PM +, Al Viro wrote: >> use proc_remove_subtree() for subtree removal, both on setup failure >> halfway through and on teardown. No need to make simple things >> complex... > >

Re: sctp: use proc_remove_subtree()

2018-03-14 Thread Al Viro
On Wed, Mar 14, 2018 at 08:46:21PM +, Al Viro wrote: > use proc_remove_subtree() for subtree removal, both on setup failure > halfway through and on teardown. No need to make simple things > complex... ... and sctp_dbg_objcnt_exit() can be removed as well - remove_proc_subtree() will get

sctp: use proc_remove_subtree()

2018-03-14 Thread Al Viro
use proc_remove_subtree() for subtree removal, both on setup failure halfway through and on teardown. No need to make simple things complex... Signed-off-by: Al Viro --- include/net/sctp/sctp.h | 9 + net/sctp/proc.c | 90