linux/fs/xfs/scrub
Darrick J. Wong 0dca060c2a xfs: scrub: avoid uninitialized return code
The newly added xfs_scrub_da_btree_block() function has one code path
that returns the 'error' variable without initializing it first, as
shown by this compiler warning:

fs/xfs/scrub/dabtree.c: In function 'xfs_scrub_da_btree_block':
fs/xfs/scrub/dabtree.c:462:9: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Return zero since the caller will exit the scrub code if we don't produce a
buffer pointer.

Fixes: 7c4a07a424 ("xfs: scrub directory/attribute btrees")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
2017-11-03 09:45:56 -07:00
..
agheader.c xfs: scrub the AGI 2017-10-26 15:38:24 -07:00
alloc.c xfs: scrub free space btrees 2017-10-26 15:38:25 -07:00
attr.c xfs: scrub extended attribute leaf space 2017-11-01 15:03:16 -07:00
bmap.c xfs: scrub inode block mappings 2017-10-26 15:38:25 -07:00
btree.c xfs: compare btree block keys to parent block's keys during scrub 2017-10-27 09:20:31 -07:00
btree.h xfs: create helpers to scrub a metadata btree 2017-10-26 15:38:24 -07:00
common.c xfs: scrub directory metadata 2017-10-26 15:38:25 -07:00
common.h xfs: scrub quota information 2017-10-26 15:38:26 -07:00
dabtree.c xfs: scrub: avoid uninitialized return code 2017-11-03 09:45:56 -07:00
dabtree.h xfs: scrub extended attribute leaf space 2017-11-01 15:03:16 -07:00
dir.c xfs: scrub extended attribute leaf space 2017-11-01 15:03:16 -07:00
ialloc.c xfs: scrub inode btrees 2017-10-26 15:38:25 -07:00
inode.c xfs: scrub inodes 2017-10-26 15:38:25 -07:00
parent.c xfs: scrub directory parent pointers 2017-10-26 15:38:26 -07:00
quota.c xfs: scrub quota information 2017-10-26 15:38:26 -07:00
refcount.c xfs: scrub refcount btrees 2017-10-26 15:38:25 -07:00
rmap.c xfs: scrub rmap btrees 2017-10-26 15:38:25 -07:00
rtbitmap.c xfs: scrub realtime bitmap/summary 2017-10-26 15:38:26 -07:00
scrub.c xfs: scrub quota information 2017-10-26 15:38:26 -07:00
scrub.h xfs: scrub quota information 2017-10-26 15:38:26 -07:00
symlink.c xfs: scrub symbolic links 2017-10-26 15:38:26 -07:00
trace.c xfs: create helpers to scrub a metadata btree 2017-10-26 15:38:24 -07:00
trace.h xfs: scrub btree keys and records 2017-10-26 15:38:24 -07:00
xfs_scrub.h xfs: create an ioctl to scrub AG metadata 2017-10-26 15:38:23 -07:00