lkml.org 
[lkml]   [2023]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch net, v2] net: xfrm: skip policies marked as dead while reinserting policies
Leon Romanovsky <leon@kernel.org> wrote:
> > dir = xfrm_policy_id2dir(policy->index);
> > - if (policy->walk.dead || dir >= XFRM_POLICY_MAX)
> > + if (dir >= XFRM_POLICY_MAX)
>
> This change is unnecessary, previous code was perfectly fine.

Are you sure? AFAICS walker struct has no 'index' member.

\
 
 \ /
  Last update: 2023-08-15 08:08    [W:1.099 / U:0.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site