aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2021-08-02 17:09:38 +0300
committerLuca Coelho <luciano.coelho@intel.com>2021-08-26 23:32:20 +0300
commit6ac5720086c8b176794eb74c5cc09f8b79017f38 (patch)
treec39e4cd00061468d273aa2e4ba8883e1493d946d /drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
parentiwlwifi: pcie: optimise struct iwl_rx_mem_buffer layout (diff)
downloadlinux-dev-6ac5720086c8b176794eb74c5cc09f8b79017f38.tar.xz
linux-dev-6ac5720086c8b176794eb74c5cc09f8b79017f38.zip
iwlwifi: pcie: free RBs during configure
When switching op-modes, or more generally when reconfiguring, we might switch the RB size. In _iwl_pcie_rx_init() we have a comment saying we must free all RBs since we might switch the size, but this is actually too late: the switch has been done and we'll free the buffers with the wrong size. Fix this by always freeing the buffers, if any, at the start of configure, instead of only after the size may have changed. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20210802170640.42d7c93279c4.I07f74e65aab0e3d965a81206fcb289dc92d74878@changeid Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c')
0 files changed, 0 insertions, 0 deletions