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 <[email protected]> Signed-off-by: Cong Wang <[email protected]>
Answered my own question by looking at implementation of kfree(); ignores NULL (unlike free()) Acked-by: Jamal Hadi Salim <[email protected]> cheers, jamal
