Patch "iwlwifi: mvm: unmap the paging memory before freeing it" has been added to the 4.7-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iwlwifi: mvm: unmap the paging memory before freeing it
to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iwlwifi-mvm-unmap-the-paging-memory-before-freeing-it.patch
and it can be found in the queue-4.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
3edbc7dabab8ce85aa75c5e290ecda7a3692ebc9Mon Sep 17 00:00:00 2001
From: Emmanuel Grumbach <[email protected]>
Date: Sun, 19 Jun 2016 20:57:02 +0300
Subject: iwlwifi: mvm: unmap the paging memory before freeing it
From: Emmanuel Grumbach <[email protected]>
commit 3edbc7dabab8ce85aa75c5e290ecda7a3692ebc9 upstream.
This led to a DMA splat.
--- drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +8 -4
@@ -139,17 +139,21 @@ void iwl_free_fw_paging(struct iwl_mvm *return ;for (i =0 ; i <NUM_OF_FW_PAGING_BLOCKS ; i++) { -if (!mvm->fw_paging_db[i].fw_paging_block) { +struct iwl_fw_paging *paging = &mvm->fw_paging_db[i]; + +if (!paging->fw_paging_block) {IWL_DEBUG_FW (mvm,"Paging: block %d already freed, continue to next page\n" , i);continue ; } +dma_unmap_page (mvm->trans->dev, paging->fw_paging_phys, + paging->fw_paging_size,DMA_BIDIRECTIONAL ); -__free_pages (mvm->fw_paging_db[i].fw_paging_block, -get_order (mvm->fw_paging_db[i].fw_paging_size)); - mvm->fw_paging_db[i].fw_paging_block =NULL ; +__free_pages (paging->fw_paging_block, +get_order (paging->fw_paging_size)); + paging->fw_paging_block =NULL ; }kfree (mvm->trans->paging_download_buf); mvm->trans->paging_download_buf =NULL ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/iwlwifi-mvm-unmap-the-paging-memory-before-freeing-it.patch queue-4.7/iwlwifi-mvm-don-t-use-ret-when-not-initialised.patch