diff options
author | Florian Westphal <[email protected]> | 2024-08-30 16:39:10 +0200 |
---|---|---|
committer | Steffen Klassert <[email protected]> | 2024-09-09 15:30:05 +0200 |
commit | 6a13f5afd39d17320316dbb8dd533fe7c6a613e6 (patch) | |
tree | 81f2899111af9560bd5c82f628bda7caf6e38538 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 69716a3babe1165a9ab1b3770b55d303d5bb5fa3 (diff) |
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 <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Signed-off-by: Florian Westphal <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions