From: Eric Sandeen Date: Thu, 1 Aug 2013 01:18:54 +0000 (-0500) Subject: xfs: avoid double-free in xfs_attr_node_addname X-Git-Tag: v3.12-rc1~80^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dd93e9e5eb19e81a74b3df8426a945a08ad8a1f;p=pandora-kernel.git xfs: avoid double-free in xfs_attr_node_addname xfs_attr_node_addname()'s error handling tests whether it should free "state" in the out: error handling label: out: if (state) xfs_da_state_free(state); but an earlier free doesn't set state to NULL afterwards; this could lead to a double free. Fix it by setting state to NULL after it's freed. This was found by Coverity. Signed-off-by: Eric Sandeen Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- Reading git-diff-tree failed