]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix leaks on corruption errors in xfs_bmap.c
authorEric Sandeen <sandeen@sandeen.net>
Tue, 28 Nov 2017 02:23:32 +0000 (18:23 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 28 Nov 2017 16:57:11 +0000 (08:57 -0800)
commit25cc72011f79ff777f847b78be5f088b42b229dd
tree2d18e46cefdb44b649a1e60d4ab6e111c2eb5dfe
parent5188d06077b6f7d6e7111cae3797a9daecb603bf
xfs: fix leaks on corruption errors in xfs_bmap.c

Use _GOTO instead of _RETURN so we can free the allocated
cursor on error.

Fixes: 57dab5d ("xfs: remove xfs_bmse_shift_one")
Fixes-coverity-id: 14238131423676
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c