summaryrefslogtreecommitdiff
path: root/net/dccp/diag.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-08-30 16:39:10 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2024-09-09 15:30:05 +0200
commit6a13f5afd39d17320316dbb8dd533fe7c6a613e6 (patch)
tree81f2899111af9560bd5c82f628bda7caf6e38538 /net/dccp/diag.c
parent69716a3babe1165a9ab1b3770b55d303d5bb5fa3 (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 <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 'net/dccp/diag.c')
0 files changed, 0 insertions, 0 deletions