summaryrefslogtreecommitdiffstats
path: root/fs/nfs_common
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2014-01-28 19:13:38 +0800
committerChris Mason <clm@fb.com>2014-01-29 07:06:26 -0800
commitf05c474688762f186b16a26366755b6ef0bfed0c (patch)
treebc808f97ce526c8eaf80473ca5dd5de8a8fece8e /fs/nfs_common
parentbf54f412f0624786ac8a115110b5203430a9eebb (diff)
downloadtalos-obmc-linux-f05c474688762f186b16a26366755b6ef0bfed0c.tar.gz
talos-obmc-linux-f05c474688762f186b16a26366755b6ef0bfed0c.zip
Btrfs: fix memory leaks on walking backrefs failure
When walking backrefs, we may iterate every inode's extent and add/merge them into ulist, and the caller will free memory from ulist. However, if we fail to allocate inode's extents element memory or ulist_add() fail to allocate memory, we won't add allocated memory into ulist, and the caller won't free some allocated memory thus memory leaks happen. Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud