pipeline: fix selector freeing
Due to a typo, the selector_free() function incorrectly takes an early
return when the selectors array is non-NULL, as opposed to the other
way around.
Coverity issue: 371912
Fixes: cdaa937d3e
("pipeline: support selector table")
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
parent
cf1e803508
commit
40d42de563
@ -815,7 +815,7 @@ selector_free(struct rte_swx_ctl_pipeline *ctl)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
if (ctl->selectors)
|
||||
if (!ctl->selectors)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ctl->info.n_selectors; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user