From: Stephen Hemminger Date: Sun, 10 Feb 2008 07:26:53 +0000 (-0800) Subject: [PKT_SCHED] ematch: tcf_em_destroy robustness X-Git-Tag: v2.6.25-rc1~7^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=954415e33ed6cfa932c13e8c2460bd05e50723b5;p=pandora-kernel.git [PKT_SCHED] ematch: tcf_em_destroy robustness Make the code in tcf_em_tree_destroy more robust and cleaner: * Don't need to cast pointer to kfree() or avoid passing NULL. * After freeing the tree, clear the pointer to avoid possible problems from repeated free. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- Reading git-diff-tree failed