diff options
| author | Sang-Hoon Choi <csh0052@gmail.com> | 2026-10-02 19:47:40 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-05 17:02:54 -0700 |
| commit | a032c035272aff415a3ac7ec48bd16aada5fc4bf (patch) | |
| tree | 37ff98cac2d5b4bd5d93ab5398232c3f4aed0b49 /net | |
| parent | a089139eb47bf80d13cc394f59a96b868d88c09e (diff) | |
nfp: flower: remove merge entry when conntrack offload fails
nfp_ct_do_nft_merge() inserts nft_m_entry into nft_merge_tb and
increments nft_merge_count before calling nfp_fl_ct_add_offload(). If
that call fails, the error path removes the entry from its lists and
frees it, but leaves the hash entry and count behind.
Remove the hash entry and undo the count increment before freeing
nft_m_entry.
Cc: stable+noautosel@kernel.org # untested fix to unlikely driver error path
Fixes: a87ceb3d42af ("nfp: flower: offload tc flows of multiple conntrack zones")
Reported-by: Changyul Lee <lcy8047@gmail.com>
Signed-off-by: Sang-Hoon Choi <csh0052@gmail.com>
Link: https://patch.msgid.link/20261003.final049.214b9988b1e1f0a7@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
