1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi
Haim Dreyfuss 55ae96b6ac iwlwifi: acpi: don't return valid pointer as an ERR_PTR
iwl_acpi_get_wifi_pkg() may return a valid pointer (meaning success),
while `tbl_rev` is invalid (equel to 1).
In this case, we will treat that as an error.
Subsequent "users" of this "error code" may either check for nonzero
(good; pointers are never zero) or negative
(bad; pointers may be "positive") fix that by splitting the if statement.
First check if IS_ERR(wifi_pkg) and then if tbl_rev != 0.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210210142629.1c8c4b58c932.I147373f6fd364606b0282af8d402c722eb917225@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2021-02-10 14:39:41 +02:00
..
cfg iwlwifi: add new cards for So and Qu family 2021-02-10 13:57:00 +02:00
dvm iwlwifi: remove flags argument for nic_access 2021-02-10 14:39:40 +02:00
fw iwlwifi: acpi: don't return valid pointer as an ERR_PTR 2021-02-10 14:39:41 +02:00
mvm iwlwifi: dbg: add op_mode callback for collecting debug data. 2021-02-10 14:39:39 +02:00
pcie iwlwifi: remove flags argument for nic_access 2021-02-10 14:39:40 +02:00
queue iwlwifi: queue: add fake tx time point 2021-02-10 14:39:40 +02:00
iwl-agn-hw.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-config.h iwlwifi: add new cards for So and Qu family 2021-02-10 13:57:00 +02:00
iwl-context-info-gen3.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-context-info.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-csr.h iwlwifi: support firmware reset handshake 2020-12-10 00:16:03 +02:00
iwl-dbg-tlv.c iwlwifi: dbg: remove unsupported regions 2021-02-10 14:39:38 +02:00
iwl-dbg-tlv.h iwlwifi: dbg: add op_mode callback for collecting debug data. 2021-02-10 14:39:39 +02:00
iwl-debug.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-debug.h iwlwifi: mvm: add d3 prints 2020-10-01 22:00:59 +03:00
iwl-devtrace-data.h iwlwifi: pcie: trace IOVA for iwlwifi_dev_tx_tb 2019-11-20 12:28:55 +02:00
iwl-devtrace-io.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace-iwlwifi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace-msg.h net: iwlwifi: Remove in_interrupt() from tracing macro. 2020-09-29 14:02:55 -07:00
iwl-devtrace-ucode.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 322 2019-06-05 17:37:05 +02:00
iwl-devtrace.h iwlwifi: fix warning iwl-trans.h is included more than once 2019-09-06 15:52:05 +03:00
iwl-drv.c iwlwifi: dbg: Mark ucode tlv data as const 2021-02-10 13:58:15 +02:00
iwl-drv.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-eeprom-parse.c iwlwifi: always allow maximum A-MSDU on newer devices 2021-02-05 11:55:21 +02:00
iwl-eeprom-parse.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-eeprom-read.c iwlwifi: iwl-eeprom-read: Demote one nonconformant function header 2020-12-11 20:24:22 +02:00
iwl-eeprom-read.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-fh.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-io.c iwlwifi: remove flags argument for nic_access 2021-02-10 14:39:40 +02:00
iwl-io.h iwlwifi: fix the NMI flow for old devices 2021-01-25 15:53:00 +02:00
iwl-modparams.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-nvm-parse.c iwlwifi: declare support for triggered SU/MU beamforming feedback 2021-02-10 14:39:39 +02:00
iwl-nvm-parse.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-op-mode.h iwlwifi: dbg: add op_mode callback for collecting debug data. 2021-02-10 14:39:39 +02:00
iwl-phy-db.c iwlwifi: iwl-phy-db: Add missing struct member description for 'trans' 2020-12-11 20:24:25 +02:00
iwl-phy-db.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-prph.h iwlwifi patches intended for v5.12 2021-02-08 18:52:00 +02:00
iwl-scd.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-trans.c iwlwifi: tx: move handing sync/async host command to trans 2021-02-05 11:55:19 +02:00
iwl-trans.h iwlwifi: remove flags argument for nic_access 2021-02-10 14:39:40 +02:00
Kconfig First set of patches intended for v5.9 2020-06-15 20:23:23 +03:00
Makefile iwlwifi: move PNVM implementation to common code 2020-10-08 20:14:58 +03:00