We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69716a3 commit 6a13f5aCopy full SHA for 6a13f5a
net/xfrm/xfrm_policy.c
@@ -4429,7 +4429,7 @@ EXPORT_SYMBOL_GPL(xfrm_audit_policy_delete);
4429
static struct xfrm_policy *xfrm_migrate_policy_find(const struct xfrm_selector *sel,
4430
u8 dir, u8 type, struct net *net, u32 if_id)
4431
{
4432
- struct xfrm_policy *pol, *ret = NULL;
+ struct xfrm_policy *pol;
4433
struct flowi fl;
4434
4435
memset(&fl, 0, sizeof(fl));
@@ -4465,7 +4465,7 @@ static struct xfrm_policy *xfrm_migrate_policy_find(const struct xfrm_selector *
4465
if (IS_ERR_OR_NULL(pol))
4466
goto out_unlock;
4467
4468
- if (!xfrm_pol_hold_rcu(ret))
+ if (!xfrm_pol_hold_rcu(pol))
4469
pol = NULL;
4470
out_unlock:
4471
rcu_read_unlock();
0 commit comments