linux-stable/fs/udf
Tom Rix 41cb5369cb udf: initialize newblock to 0
commit 23970a1c94 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-13 09:43:05 +02:00
..
Kconfig
Makefile
balloc.c udf: Check consistency of Space Bitmap Descriptor 2023-09-13 09:42:26 +02:00
dir.c udf: replace ll_rw_block() 2022-09-11 20:26:07 -07:00
directory.c udf: replace ll_rw_block() 2022-09-11 20:26:07 -07:00
ecma_167.h
file.c udf: Do not update file length for failed writes to inline files 2023-03-10 09:34:10 +01:00
ialloc.c udf: Fix error handling in udf_new_inode() 2021-12-15 13:08:34 +01:00
inode.c udf: initialize newblock to 0 2023-09-13 09:43:05 +02:00
lowlevel.c
misc.c
namei.c udf: Avoid double brelse() in udf_rename() 2022-12-31 13:32:57 +01:00
osta_udf.h
partition.c
super.c udf: Preserve link count of system files 2023-03-10 09:34:10 +01:00
symlink.c udf: Convert adinicb and symlinks to read_folio 2022-05-09 16:21:46 -04:00
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2022-12-21 17:48:05 +01:00
udf_i.h udf: Preserve link count of system files 2023-03-10 09:34:10 +01:00
udf_sb.h udf: Define EFSCORRUPTED error code 2023-03-10 09:33:45 +01:00
udfdecl.h
udfend.h
udftime.c
unicode.c udf: Fix uninitialized array access for some pathnames 2023-07-27 08:50:32 +02:00