Skip to content

Commit

Permalink
xfrm: state: update based on Antony^2 comments
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Mar 9, 2024
1 parent c6be7e1 commit cee2132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1788,8 +1788,9 @@ static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig,
x->new_mapping = 0;
x->new_mapping_sport = 0;

x->mode_cbs = orig->mode_cbs;
if (x->mode_cbs && x->mode_cbs->clone) {
if (!x->mode_cbs->clone(x, orig))
if (x->mode_cbs->clone(x, orig))
goto error;
}

Expand Down

0 comments on commit cee2132

Please sign in to comment.