From: Nicolas Dichtel Date: Fri, 23 Aug 2013 13:46:08 +0000 (+0200) Subject: xfrm: announce deleation of temporary SA X-Git-Tag: v3.13-rc1~105^2~274^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0806ae4cc8722b2d2822fe3fa3f516f2da6b9459;p=platform%2Fkernel%2Flinux-exynos.git xfrm: announce deleation of temporary SA Creation of temporary SA are announced by netlink, but there is no notification for the deletion. This patch fix this asymmetric situation. Signed-off-by: Nicolas Dichtel Signed-off-by: Steffen Klassert --- diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 4f8ace8..3fd65b7 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -471,7 +471,7 @@ expired: } err = __xfrm_state_delete(x); - if (!err && x->id.spi) + if (!err) km_state_expired(x, 1, 0); xfrm_audit_state_delete(x, err ? 0 : 1,