]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: sanitise error handling in xfs_alloc_fix_freelist
authorDave Chinner <dchinner@redhat.com>
Fri, 3 Jul 2015 01:54:38 +0000 (11:54 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 3 Jul 2015 01:54:38 +0000 (11:54 +1000)
commit33f38513bd1502aeae05b2eff47369e8caa46fc1
treefb2853837e8eee9f3bd5eee2ee4546c7a3cceee1
parentd37baa71273ba127f04d767aceb1e6e6802b6d8c
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