aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2015-08-25 10:05:13 +1000
committerDave Chinner <[email protected]>2015-08-25 10:05:13 +1000
commitc184f855c483428027d6ec937e4a9d5f15b2cbad (patch)
tree9c8e9d0c92b5479abe523ff1a2dd862039213986 /lib/mpi/mpiutil.c
parent3403ccc0c9f069c40ea751a93ac6746f5ef2116a (diff)
xfs: Fix uninitialized return value in xfs_alloc_fix_freelist()
xfs_alloc_fix_freelist() can sometimes jump to out_agbp_relse without ever setting value of 'error' variable which is then returned. This can happen e.g. when pag->pagf_init is set but AG is for metadata and we want to allocate user data. Fix the problem by initializing 'error' to 0, which is the desired return value when we decide to skip this group. CC: [email protected] Coverity-id: 1309714 Signed-off-by: Jan Kara <[email protected]> Reviewed-by: Brian Foster <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions