]> 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:51:24 +0000 (09:51 +0100)
commit28dedc7fcf3c9bb9e867b1e36ffb27e18bb6970a
treea1164965bf92205912aed700e99b399308a39f53
parentfa4c77df119235d88bf7f9be473c3fd9a337ab63
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