diff options
| author | Li Xiasong <lixiasong1@huawei.com> | 2026-05-07 17:04:22 +0300 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-05-08 02:30:17 +0300 |
| commit | eb6317739b1ea3ab28791e1f91b24781905fa815 (patch) | |
| tree | ca7207eda2b5ab5f8d0431b261e3bd552895e3dc /include | |
| parent | d8ef54c83ad70b81735b506431affadd2f720aa1 (diff) | |
| download | linux-eb6317739b1ea3ab28791e1f91b24781905fa815.tar.xz | |
netfilter: nf_conntrack_sip: get helper before allocating expectation
process_register_request() allocates an expectation and then checks
whether a conntrack helper is available. If helper lookup fails, the
function returns early and the allocated expectation is left behind.
Reorder the code to fetch and validate helper before calling
nf_ct_expect_alloc(). This keeps the logic simpler and removes the leak
path while preserving existing behavior.
Fixes: e14575fa7529 ("netfilter: nf_conntrack: use rcu accessors where needed")
Cc: stable@vger.kernel.org
Signed-off-by: Li Xiasong <lixiasong1@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
