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, 4 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 280f8ded975c..d83227baaa09 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1510,8 +1510,10 @@ restart:
1510 policy = flow_cache_lookup(fl, dst_orig->ops->family, 1510 policy = flow_cache_lookup(fl, dst_orig->ops->family,
1511 dir, xfrm_policy_lookup); 1511 dir, xfrm_policy_lookup);
1512 err = PTR_ERR(policy); 1512 err = PTR_ERR(policy);
1513 if (IS_ERR(policy)) 1513 if (IS_ERR(policy)) {
1514 XFRM_INC_STATS(LINUX_MIB_XFRMOUTPOLERROR);
1514 goto dropdst; 1515 goto dropdst;
1516 }
1515 } 1517 }
1516 1518
1517 if (!policy) 1519 if (!policy)
@@ -1603,6 +1605,7 @@ restart:
1603 /* EREMOTE tells the caller to generate 1605 /* EREMOTE tells the caller to generate
1604 * a one-shot blackhole route. 1606 * a one-shot blackhole route.
1605 */ 1607 */
1608 XFRM_INC_STATS(LINUX_MIB_XFRMOUTNOSTATES);
1606 xfrm_pol_put(policy); 1609 xfrm_pol_put(policy);
1607 return -EREMOTE; 1610 return -EREMOTE;
1608 } 1611 }