Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3e40a9f authored by David S. Miller's avatar David S. Miller
Browse files

xfrm: Const'ify policy arg to clone_policy.

parent 63eb23f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1105,7 +1105,7 @@ int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol)
	return 0;
}

static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir)
static struct xfrm_policy *clone_policy(const struct xfrm_policy *old, int dir)
{
	struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC);