diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-03-11 19:00:02 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-03-14 14:26:09 -0700 |
commit | 1d871549eb9b232f4c354215655025af32426a57 (patch) | |
tree | 557b8c2f25d97f601b17c318040c66d5502edb39 /fs/xfs/xfs_inode_item.h | |
parent | 4447e7123f3f749edaa64af34cd49f645cc9a280 (diff) |
xfs: zero initialize highstale and lowstale in xfs_dir2_leaf_addname
Smatch complains about the following:
fs/xfs/libxfs/xfs_dir2_leaf.c:848 xfs_dir2_leaf_addname() error:
uninitialized symbol 'lowstale'.
fs/xfs/libxfs/xfs_dir2_leaf.c:849 xfs_dir2_leaf_addname() error:
uninitialized symbol 'highstale'.
I don't think there's any incorrect behavior associated with the
uninitialized variable, but as the author of the previous zero-init
patch points out, it's best not to be passing around pointers to
uninitialized stack areas.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_inode_item.h')
0 files changed, 0 insertions, 0 deletions