Re: [PATCH net-next] net: sched: act_pedit: fix possible memory leak in tcf_pedit_init()

2018-07-04 Thread David Miller
From: Wei Yongjun Date: Tue, 3 Jul 2018 13:45:12 + > 'keys_ex' is malloced by tcf_pedit_keys_ex_parse() in tcf_pedit_init() > but not all of the error handle path free it, this may cause memory > leak. This patch fix it. > > Fixes: 71d0ed7079df ("net/act_pedit: Support using offset relative

Re: [PATCH net-next] net: sched: act_pedit: fix possible memory leak in tcf_pedit_init()

2018-07-03 Thread Cong Wang
On Tue, Jul 3, 2018 at 6:36 AM Wei Yongjun wrote: > > 'keys_ex' is malloced by tcf_pedit_keys_ex_parse() in tcf_pedit_init() > but not all of the error handle path free it, this may cause memory > leak. This patch fix it. > > Fixes: 71d0ed7079df ("net/act_pedit: Support using offset relative to th

[PATCH net-next] net: sched: act_pedit: fix possible memory leak in tcf_pedit_init()

2018-07-03 Thread Wei Yongjun
'keys_ex' is malloced by tcf_pedit_keys_ex_parse() in tcf_pedit_init() but not all of the error handle path free it, this may cause memory leak. This patch fix it. Fixes: 71d0ed7079df ("net/act_pedit: Support using offset relative to the conventional network headers") Signed-off-by: Wei Yongjun