]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: Fix some error codes
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 8 Feb 2024 10:17:06 +0000 (13:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:24:49 +0000 (09:24 +0100)
commit83f4bf711f30f989bafbc2f4794f8e8da1fcce40
tree80bcbb78741e3b4edc47a8938803d04dafacee98
parent9f9aff002a4d6bf93c295f82e13ab6113352fb01
wifi: iwlwifi: Fix some error codes

[ Upstream commit c6ebb5b67641994de8bc486b33457fe0b681d6fe ]

This saves the error as PTR_ERR(wifi_pkg).  The problem is that
"wifi_pkg" is a valid pointer, not an error pointer.  Set the error code
to -EINVAL instead.

Fixes: 2a8084147bff ("iwlwifi: acpi: support reading and storing WRDS revision 1 and 2")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://msgid.link/9620bb77-2d7c-4d76-b255-ad824ebf8e35@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