]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: sanitise error handling in xfs_alloc_fix_freelist
authorDave Chinner <dchinner@redhat.com>
Fri, 31 Jul 2015 01:10:56 +0000 (11:10 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 31 Jul 2015 01:10:56 +0000 (11:10 +1000)
commitc98e644ed6616505e18861a0a4d2a440a6e04be5
treeb00e27bea65ca02d43209b5c0d8ad541c1aabbd0
parent5515b7c19df70b32667bd5a66d7657ad4e408e72
xfs: sanitise error handling in xfs_alloc_fix_freelist

The error handling is currently an inconsistent mess as every error
condition handles return values and releasing buffers individually.
Clean this up by using gotos and a sane error label stack.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_alloc.c