Files
linux-stable-mirror/fs
Dan Carpenter 7504fb57af ext4: fix potential unnitialized variable
[ Upstream commit 3f4830abd2 ]

Smatch complains "err" can be uninitialized in the caller.

    fs/ext4/indirect.c:349 ext4_alloc_branch()
    error: uninitialized symbol 'err'.

Set the error to zero on the success path.

Fixes: 8016e29f43 ("ext4: fast commit recovery path")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/363a4673-0fb8-4adf-b4fb-90a499077276@moroto.mountain
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:03:31 +02:00
..
2024-04-03 15:19:30 +02:00
2024-05-25 16:21:31 +02:00
2024-02-05 20:12:58 +00:00
2024-06-12 11:03:04 +02:00
2023-09-13 09:43:05 +02:00
2024-02-23 09:12:45 +01:00
2023-09-23 11:11:10 +02:00
2024-03-26 18:20:28 -04:00
2023-08-30 16:11:10 +02:00