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

xfrm: Const'ify policy arg to clone_policy.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63eb23f5
...@@ -1105,7 +1105,7 @@ int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol) ...@@ -1105,7 +1105,7 @@ int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol)
return 0; 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); struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment