]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: fix leaks on corruption errors in xfs_bmap.c
authorEric Sandeen <sandeen@sandeen.net>
Wed, 3 Jan 2018 19:42:03 +0000 (13:42 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 3 Jan 2018 19:42:03 +0000 (13:42 -0600)
commit5c40ca1fbca9c7b67b775b38063951e21308aebd
treebf4fcb1fd0601b96c09e1bbbd3a9abc06c125b83
parentdc9b1f58bffb702ea7f17720f9412677d903964a
xfs: fix leaks on corruption errors in xfs_bmap.c

Source kernel commit: d41c6172bd4031979eab722c265a2e5764383c3c

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c