summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-08-01 01:18:54 (GMT)
committerBen Myers <bpm@sgi.com>2013-08-13 20:48:01 (GMT)
commit6dd93e9e5eb19e81a74b3df8426a945a08ad8a1f (patch)
tree75ff24b7d369bacc7d15be86338badb37da5f07a /mm/page_alloc.c
parent2c2bcc0735f4ab052559b539f3fcab4087187232 (diff)
downloadlinux-6dd93e9e5eb19e81a74b3df8426a945a08ad8a1f.tar.xz
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 <sandeen@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions