ocfs2: free meta_ac and data_ac when ocfs2_start_trans fails in ocfs2_xattr_set()
authorYounger Liu <younger.liu@huawei.com>
Wed, 11 Sep 2013 21:19:56 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:56:47 +0000 (15:56 -0700)
commit6ea437a3639b15e312f81819bb20f737ff596194
tree4597c89df18548437a555660bf41adf076d1d908
parent17caf9555edc27a0c6df512de0879b357ebacae4
ocfs2: free meta_ac and data_ac when ocfs2_start_trans fails in ocfs2_xattr_set()

In ocfs2_xattr_set(), if ocfs2_start_trans failed, meta_ac and data_ac
should be free.  Otherwise, It would lead to a memory leak.

Signed-off-by: Younger Liu <younger.liu@huawei.com>
Cc: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/xattr.c