summaryrefslogtreecommitdiffstats
path: root/drivers/char/hangcheck-timer.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-12-30 12:53:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-13 09:43:05 +0200
commit41cb5369cb8042a8490f619340c5e98a512ddfd7 (patch)
tree77ab881a0acaa7e19f25c39a5730efd84f858a42 /drivers/char/hangcheck-timer.c
parentc74b1cd93f260d9691a17fce33553bb87341c9e2 (diff)
downloadlinux-stable-41cb5369cb8042a8490f619340c5e98a512ddfd7.tar.gz
linux-stable-41cb5369cb8042a8490f619340c5e98a512ddfd7.tar.bz2
linux-stable-41cb5369cb8042a8490f619340c5e98a512ddfd7.zip
udf: initialize newblock to 0
commit 23970a1c9475b305770fd37bebfec7a10f263787 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>
Diffstat (limited to 'drivers/char/hangcheck-timer.c')
0 files changed, 0 insertions, 0 deletions