Re: [PATCH net-next] net: sched: act_ife: always release ife action on init error

2018-08-16 Thread David Miller
From: Vlad Buslov Date: Tue, 14 Aug 2018 20:29:56 +0300 > Action init API was changed to always take reference to action, even when > overwriting existing action. Substitute conditional action release, which > was executed only if action is newly created, with unconditional release in > tcf_ife_i

Re: [PATCH net-next] net: sched: act_ife: always release ife action on init error

2018-08-14 Thread Cong Wang
On Tue, Aug 14, 2018 at 10:30 AM Vlad Buslov wrote: > > Action init API was changed to always take reference to action, even when > overwriting existing action. Substitute conditional action release, which > was executed only if action is newly created, with unconditional release in > tcf_ife_init

[PATCH net-next] net: sched: act_ife: always release ife action on init error

2018-08-14 Thread Vlad Buslov
Action init API was changed to always take reference to action, even when overwriting existing action. Substitute conditional action release, which was executed only if action is newly created, with unconditional release in tcf_ife_init() error handling code to prevent double free or memory leak in