diff options
author | Su Hui <[email protected]> | 2023-07-25 12:33:11 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2023-08-27 11:27:12 -0400 |
commit | a50bda147421e24c1a5d47ddcc0675360b7cb3ac (patch) | |
tree | d46dfad620a8aefd49a4b9a476cca973ea37e6c5 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 79ebf48c44b5ba05a98af23f8830883daf36f4d3 (diff) |
ext4: mballoc: avoid garbage value from err
clang's static analysis warning: fs/ext4/mballoc.c
line 4178, column 6, Branch condition evaluates to a garbage value.
err is uninitialized and will be judged when 'len <= 0' or
it first enters the loop while the condition "!ext4_sb_block_valid()"
is true. Although this can't make problems now, it's better to
correct it.
Signed-off-by: Su Hui <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions