From 81187eb81e7f03125c30451d681ec44171f74cd5 Mon Sep 17 00:00:00 2001 From: Krishna Kumar Date: Tue, 13 Jan 2004 07:23:17 -0800 Subject: [PATCH] [IPCOMP]: Set x->km.state to XFRM_STATE_DEAD in ipcomp_tunnel_create(). Otherwise we can trigger the BUG trap in __xfrm_state_destroy() when xfrm_state_put() finds this is the last reference. --- net/ipv4/ipcomp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 7ab0b1c81dd23..0676d6c6f8133 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c @@ -294,6 +294,7 @@ out: return t; error: + t->km.state = XFRM_STATE_DEAD; xfrm_state_put(t); t = NULL; goto out; -- 2.53.0