Re: [PATCH] net: sched: skip an unnecessay check

2020-09-08 Thread David Miller
From: t...@redhat.com Date: Mon, 7 Sep 2020 11:04:38 -0700 > From: Tom Rix > > Reviewing the error handling in tcf_action_init_1() > most of the early handling uses > > err_out: > if (cookie) { > kfree(cookie->data); > kfree(cookie); > } > > before cook

[PATCH] net: sched: skip an unnecessay check

2020-09-07 Thread trix
From: Tom Rix Reviewing the error handling in tcf_action_init_1() most of the early handling uses err_out: if (cookie) { kfree(cookie->data); kfree(cookie); } before cookie could ever be set. So skip the unnecessay check. Signed-off-by: Tom Rix