xfs: Initialize variables in xfs_alloc_get_rec before using them
authorCarlos Maiolino <cmaiolino@redhat.com>
Thu, 12 Jul 2018 05:26:36 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:36 +0000 (22:26 -0700)
commitefe803277364a621348b679058222d644e113c9c
tree5ce8b21c6d3aee5caf164b977302f8c299fc23f5
parenta4722a643fbb9e1466491fbe5a3c44591805dcc8
xfs: Initialize variables in xfs_alloc_get_rec before using them

Make sure we initialize *bno and *len, before jumping to out_bad_rec
label, and risk calling xfs_warn() with uninitialized variables.

Coverity: 100898
Coverity: 1437081
Coverity: 1437129
Coverity: 1437191
Coverity: 1437201
Coverity: 1437212
Coverity: 1437341
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Brian Foster <bfoster@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_alloc.c