aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcookies.c
diff options
context:
space:
mode:
authorYounger Liu <younger.liu@huawei.com>2013-09-11 14:19:56 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 15:56:47 -0700
commit6ea437a3639b15e312f81819bb20f737ff596194 (patch)
tree4597c89df18548437a555660bf41adf076d1d908 /fs/dcookies.c
parentocfs2: add the missing return value check of ocfs2_xattr_get_clusters (diff)
downloadlinux-dev-6ea437a3639b15e312f81819bb20f737ff596194.tar.xz
linux-dev-6ea437a3639b15e312f81819bb20f737ff596194.zip
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>
Diffstat (limited to 'fs/dcookies.c')
0 files changed, 0 insertions, 0 deletions