kernel-hacking-2024-linux-s.../fs/udf
Tom Rix 23970a1c94 udf: initialize newblock to 0
The clang build reports this error
fs/udf/inode.c:805:6: error: variable 'newblock' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
        if (*err < 0)
            ^~~~~~~~
newblock is never set before error handling jump.
Initialize newblock to 0 and remove redundant settings.

Fixes: d8b39db5fab8 ("udf: Handle error when adding extent to a file")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20221230175341.1629734-1-trix@redhat.com>
2023-01-06 15:44:32 +01:00
..
balloc.c
dir.c
directory.c
ecma_167.h
file.c
ialloc.c
inode.c udf: initialize newblock to 0 2023-01-06 15:44:32 +01:00
Kconfig
lowlevel.c
Makefile
misc.c
namei.c \n 2022-12-12 20:32:50 -08:00
osta_udf.h
partition.c
super.c fs: udf: Optimize udf_free_in_core_inode and udf_find_fileset function 2022-10-24 16:49:00 +02:00
symlink.c
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2022-12-09 12:37:26 +01:00
udf_i.h
udf_sb.h udf: Increase UDF_MAX_READ_VERSION to 0x0260 2022-12-05 11:50:44 +01:00
udfdecl.h
udfend.h
udftime.c
unicode.c