]> git.itanic.dy.fi Git - linux-stable/commit
wifi: iwlwifi: Fix some error codes
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 8 Feb 2024 10:17:06 +0000 (13:17 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 12:49:37 +0000 (13:49 +0100)
commitc6ebb5b67641994de8bc486b33457fe0b681d6fe
treeaab99019b7361ab9c83de63b7e0480778ea74b36
parent3012477cd510044d346c5e0465ead4732aef8349
wifi: iwlwifi: Fix some error codes

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>
drivers/net/wireless/intel/iwlwifi/fw/acpi.c