Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiro Yang <fyang@suse.com>2019-08-16 11:05:25 +0200
committerFiro Yang <fyang@suse.com>2019-08-16 11:05:35 +0200
commit75645bd87ffb343a88f4f732e2c4f068c97810bb (patch)
treecf5113c26412004817291e4ba72d7a128aeac986
parent7763576c3955fdb83771b68ef70f3e2bcf42320d (diff)
xfrm: Fix error return code in xfrm_output_one() (bsc#1143300).
-rw-r--r--net/xfrm/xfrm_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index 94ff301b46df..e9e82030ef4f 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -100,6 +100,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
skb_dst_force(skb);
if (!skb_dst(skb)) {
XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR);
+ err = -EHOSTUNREACH;
goto error_nolock;
}