From: Herbert Xu Date: Wed, 2 Jan 2008 07:52:59 +0000 (-0800) Subject: [IPSEC]: Return EOVERFLOW when output sequence number overflows X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbb1db8b59fb84d620ab5266366b52c8052ee75c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [IPSEC]: Return EOVERFLOW when output sequence number overflows Previously we made it an error on the output path if the sequence number overflowed. However we did not set the err variable accordingly. This patch sets err to -EOVERFLOW in that case. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index 81ad8eb2b283..f4a1047a5573 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c @@ -66,6 +66,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err) if (unlikely(x->replay.oseq == 0)) { x->replay.oseq--; xfrm_audit_state_replay_overflow(x, skb); + err = -EOVERFLOW; goto error; } if (xfrm_aevent_is_on())