summaryrefslogtreecommitdiff
path: root/fs/ocfs2/quota_global.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-01 14:21:54 (GMT)
committerJan Kara <jack@suse.cz>2016-01-04 09:53:29 (GMT)
commit4f1b1519f7bec44ded3c2c4d46a2594c01446dc8 (patch)
treeac4d99781d728a027d8f629354a81e4ae0955901 /fs/ocfs2/quota_global.c
parent6c37157874aa2b153b722868bd984002fbcff6bb (diff)
downloadlinux-4f1b1519f7bec44ded3c2c4d46a2594c01446dc8.tar.xz
udf: avoid uninitialized variable use
A new warning has come up from a recent cleanup: fs/udf/inode.c: In function 'udf_setup_indirect_aext': fs/udf/inode.c:1927:28: warning: 'adsize' may be used uninitialized in this function [-Wmaybe-uninitialized] If the alloc_type is neither ICBTAG_FLAG_AD_SHORT nor ICBTAG_FLAG_AD_LONG, the value of adsize is undefined. Currently, callers of these functions make sure alloc_type is one of the two valid ones but for future proofing make sure we handle the case of invalid alloc type as well. This changes the code to return -EIOin that case. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: fcea62babc81 ("udf: Factor out code for creating indirect extent") Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ocfs2/quota_global.c')
0 files changed, 0 insertions, 0 deletions