Thread (6 messages) 6 messages, 3 authors, 2016-08-23

Re: [Patch net-next] net_sched: properly handle failure case of tcf_exts_init()

flat view

From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2016-08-22 12:11:51

On 16-08-19 03:36 PM, Cong Wang wrote:
After commit 22dc13c837c3 ("net_sched: convert tcf_exts from list to pointer array")
we do dynamic allocation in tcf_exts_init(), therefore we need
to handle the ENOMEM case properly.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <redacted>
Answered my own question by looking at implementation of kfree();
ignores NULL (unlike free())

Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>

cheers,
jamal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help