linux-stable/fs/udf
Tom Rix 34eb4bd915 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-23 10:59:56 +02:00
..
Kconfig
Makefile
balloc.c udf: Check consistency of Space Bitmap Descriptor 2023-09-23 10:59:40 +02:00
dir.c udf: Fix crash after seekdir 2021-11-26 10:47:21 +01:00
directory.c
ecma_167.h udf: Verify domain identifier fields 2019-09-04 18:19:25 +02:00
file.c udf: Do not update file length for failed writes to inline files 2023-03-11 16:44:00 +01:00
ialloc.c udf: augment UDF permissions on new inodes 2019-08-27 15:38:46 +02:00
inode.c udf: initialize newblock to 0 2023-09-23 10:59:56 +02:00
lowlevel.c
misc.c udf_get_extendedattr() had no boundary checks. 2021-09-15 09:47:28 +02:00
namei.c udf: Avoid double brelse() in udf_rename() 2023-01-18 11:41:34 +01:00
osta_udf.h
partition.c
super.c udf: Preserve link count of system files 2023-03-11 16:44:00 +01:00
symlink.c
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2023-01-18 11:40:47 +01:00
udf_i.h udf: Preserve link count of system files 2023-03-11 16:44:00 +01:00
udf_sb.h udf: Define EFSCORRUPTED error code 2023-03-11 16:43:53 +01:00
udfdecl.h udf: augment UDF permissions on new inodes 2019-08-27 15:38:46 +02:00
udfend.h
udftime.c
unicode.c udf: Fix uninitialized array access for some pathnames 2023-08-30 16:27:09 +02:00