xfrm: Const'ify policy arg to clone_policy.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
63eb23f5d8
commit
d3e40a9f5e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user