]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie gen2: check iwl_pcie_gen2_set_tb() return value
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jun 2018 07:53:36 +0000 (09:53 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 6 Oct 2018 07:25:50 +0000 (10:25 +0300)
commitad23979a0e1c5c37c670c3675c3a8c25c5916ec5
tree2aad372275e3e130adc2f77afc6481190be4ec95
parent4ad302711e7b919fa0ef6cdcd13acfd36f3d13ef
iwlwifi: pcie gen2: check iwl_pcie_gen2_set_tb() return value

If we use the iwl_pcie_gen2_set_tb() return value for BIT(),
we should validate that it's not going to be negative, so do
the check and bail out if we hit an error. We shouldn't, as
we check if it'll fit beforehand, but better be safe.

Fixes: 782d7863f070 ("iwlwifi: pcie: copy TX functions to new transport")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c