aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_policy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index d09766893d18..9f6c7a754772 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -869,10 +869,11 @@ EXPORT_SYMBOL(xfrm_policy_walk_done);
869 * 869 *
870 * Returns 0 if policy found, else an -errno. 870 * Returns 0 if policy found, else an -errno.
871 */ 871 */
872static int xfrm_policy_match(struct xfrm_policy *pol, const struct flowi *fl, 872static int xfrm_policy_match(const struct xfrm_policy *pol,
873 const struct flowi *fl,
873 u8 type, u16 family, int dir) 874 u8 type, u16 family, int dir)
874{ 875{
875 struct xfrm_selector *sel = &pol->selector; 876 const struct xfrm_selector *sel = &pol->selector;
876 int match, ret = -ESRCH; 877 int match, ret = -ESRCH;
877 878
878 if (pol->family != family || 879 if (pol->family != family ||