diff options
author | Brian Foster <bfoster@redhat.com> | 2015-08-19 03:01:40 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-08-19 03:01:40 +0300 |
commit | d4a97a04227d5ba91b91888a016e2300861cfbc7 (patch) | |
tree | 3f320428898455bdd353f54ef4d8ff65b8786b82 /fs/xfs/xfs_log.c | |
parent | 146e54b71ea4b998d65c25964807ff6792bbf436 (diff) | |
download | linux-d4a97a04227d5ba91b91888a016e2300861cfbc7.tar.xz |
xfs: add missing bmap cancel calls in error paths
If a failure occurs after the bmap free list is populated and before
xfs_bmap_finish() completes successfully (which returns a partial
list on failure), the bmap free list must be cancelled. Otherwise,
the extent items on the list are never freed and a memory leak
occurs.
Several random error paths throughout the code suffer this problem.
Fix these up such that xfs_bmap_cancel() is always called on error.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_log.c')
0 files changed, 0 insertions, 0 deletions