]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: uninitialized variable in iwl_acpi_get_ppag_table()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 8 Feb 2024 10:17:31 +0000 (13:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:51:24 +0000 (09:51 +0100)
commitde78bbdd0d781c8ed1a96fae2fcba3282a4b1c55
tree37885b0f61f5e65ca0aede32636702104d90c8de
parent28dedc7fcf3c9bb9e867b1e36ffb27e18bb6970a
wifi: iwlwifi: uninitialized variable in iwl_acpi_get_ppag_table()

[ Upstream commit 65c6ee90455053cfd3067c17aaa4a42b0c766543 ]

This is an error path and Smatch complains that "tbl_rev" is uninitialized
on this path.  All the other functions follow this same patter where they
set the error code and goto out_free so that's probably what was intended
here as well.

Fixes: e8e10a37c51c ("iwlwifi: acpi: move ppag code from mvm to fw/acpi")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://msgid.link/09900c01-6540-4a32-9451-563da0029cb6@moroto.mountain
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/fw/acpi.c