net/enic: fix flow initialization error handling
authorJohn Daley <johndale@cisco.com>
Thu, 8 Apr 2021 23:06:31 +0000 (16:06 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Apr 2021 08:54:57 +0000 (10:54 +0200)
commit5aa67931ec0ee1d335297a8c3fec5643a57c136b
tree4e49e4f51bbd14ff007e20d11f7477ff0293aee2
parent3f3fac61bdc207de544b4a54fe8f27f7ce4f6cc1
net/enic: fix flow initialization error handling

Fix a rare case in rte_flow initialization where the action hash table
is not freed if allocating a NIC match table fails.

Fixes: ea7768b5bba8 ("net/enic: add flow implementation based on Flow Manager API")
Cc: stable@dpdk.org
Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/enic_fm_flow.c