]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitd41c6172bd4031979eab722c265a2e5764383c3c
tree2d18e46cefdb44b649a1e60d4ab6e111c2eb5dfe
parentd210a9874b8f6166579408131cb74495caff1958
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: bf80628 ("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