From: Herbert Xu Date: Sat, 16 Apr 2005 22:24:10 +0000 (-0700) Subject: [PATCH] Fix dst_destroy() race X-Git-Tag: v2.6.12-rc3~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6775cab98b89b2caa10dce4b07e2c81999e45517;p=pandora-kernel.git [PATCH] Fix dst_destroy() race When we are not the real parent of the dst (e.g., when we're xfrm_dst and the child is an rtentry), it may already be on the GC list. In fact the current code is buggy to, we need to check dst->flags before the dec as dst may no longer be valid afterwards. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed