Commit 7395d33
committed
netfilter: nft_immediate: drop chain reference counter on error
JIRA: https://issues.redhat.com/browse/RHEL-21443
Upstream Status: commit b29be0c
commit b29be0c
Author: Pablo Neira Ayuso <[email protected]>
Date: Mon Jan 1 20:15:33 2024 +0100
netfilter: nft_immediate: drop chain reference counter on error
In the init path, nft_data_init() bumps the chain reference counter,
decrement it on error by following the error path which calls
nft_data_release() to restore it.
Fixes: 4bedf9e ("netfilter: nf_tables: fix chain binding transaction logic")
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>1 parent d51e691 commit 7395d33
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments