diff options
| author | 2024-08-30 16:39:10 +0200 | |
|---|---|---|
| committer | 2024-09-09 15:30:05 +0200 | |
| commit | 6a13f5afd39d17320316dbb8dd533fe7c6a613e6 (patch) | |
| tree | 81f2899111af9560bd5c82f628bda7caf6e38538 /tools/perf/scripts/python/gecko.py | |
| parent | Revert "xfrm: add SA information to the offloaded packet" (diff) | |
| download | linux-rng-6a13f5afd39d17320316dbb8dd533fe7c6a613e6.tar.xz linux-rng-6a13f5afd39d17320316dbb8dd533fe7c6a613e6.zip | |
xfrm: policy: fix null dereference
Julian Wiedmann says:
> + if (!xfrm_pol_hold_rcu(ret))
Coverity spotted that ^^^ needs a s/ret/pol fix-up:
> CID 1599386: Null pointer dereferences (FORWARD_NULL)
> Passing null pointer "ret" to "xfrm_pol_hold_rcu", which dereferences it.
Ditch the bogus 'ret' variable.
Fixes: 563d5ca93e88 ("xfrm: switch migrate to xfrm_policy_lookup_bytype")
Reported-by: Julian Wiedmann <jwiedmann.dev@gmail.com>
Closes: https://lore.kernel.org/netdev/06dc2499-c095-4bd4-aee3-a1d0e3ec87c4@gmail.com/
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions
