Skip to contentSkip to conversation

nfp: duplicate call to rte_free

DPDK/ethdev Bug 1555 [email protected] 1 participant 1 message Sep 28, 2024

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1555

            Bug ID: 1555
           Summary: nfp: duplicate call to rte_free
           Product: DPDK
           Version: 24.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

This function nfp_pre_tun_table_check_del in nfp_flower_flow.c could call rte_free twice on the same pointer.

static int
nfp_pre_tun_table_check_del(struct nfp_flower_representor *repr,
struct rte_flow *nfp_flow)
{
...

        rte_free(entry);
        rte_free(find_entry);
        priv->pre_tun_cnt--;

free_entry:
rte_free(entry); << already freed above

return ret;
}

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.