From: Patrick McHardy Date: Tue, 27 Nov 2007 03:10:07 +0000 (+0800) Subject: [XFRM]: Fix leak of expired xfrm_states X-Git-Tag: v2.6.24-rc4~90^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dba4797115c8fa05c1a4d12927a6ae0b33ffc41;p=pandora-kernel.git [XFRM]: Fix leak of expired xfrm_states The xfrm_timer calls __xfrm_state_delete, which drops the final reference manually without triggering destruction of the state. Change it to use xfrm_state_put to add the state to the gc list when we're dropping the last reference. The timer function may still continue to use the state safely since the final destruction does a del_timer_sync(). Signed-off-by: Patrick McHardy Signed-off-by: Herbert Xu --- Reading git-diff-tree failed