aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <[email protected]>2024-07-09 14:31:49 +0200
committerJohannes Berg <[email protected]>2024-07-10 12:35:32 +0200
commit003eae5a28c6c9d50290a4ac9b955be912f24c9f (patch)
treebd60656b50d3b1a98614d720398bc4fc1f37a0ec
parent0321e45737b8a1a7571edad9b4173fbb7b86c0ed (diff)
wifi: iwlwifi: correctly reference TSO page information
The code got copied from get_workaround_page, but here p->page is the correct way to reference the page. Signed-off-by: Benjamin Berg <[email protected]> Fixes: adc902ceada2 ("wifi: iwlwifi: keep the TSO and workaround pages mapped") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
-rw-r--r--drivers/net/wireless/intel/iwlwifi/pcie/tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
index 748772fa6b3e..22d482ae53d9 100644
--- a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
@@ -1770,7 +1770,7 @@ static void *iwl_pcie_get_page_hdr(struct iwl_trans *trans,
* (see also get_workaround_page() in tx-gen2.c)
*/
if (((unsigned long)p->pos & ~PAGE_MASK) + len < IWL_TSO_PAGE_DATA_SIZE) {
- info = IWL_TSO_PAGE_INFO(page_address(ret));
+ info = IWL_TSO_PAGE_INFO(page_address(p->page));
goto out;
}
@@ -1783,7 +1783,7 @@ alloc:
return NULL;
p->pos = page_address(p->page);
- info = IWL_TSO_PAGE_INFO(page_address(ret));
+ info = IWL_TSO_PAGE_INFO(page_address(p->page));
/* set the chaining pointer to NULL */
info->next = NULL;