diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c index 8b1a7988e176..aa7aea168138 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c | |||
@@ -374,8 +374,9 @@ static void iwl_rx_handle_rxbuf(struct iwl_trans *trans, | |||
374 | if (WARN_ON(!rxb)) | 374 | if (WARN_ON(!rxb)) |
375 | return; | 375 | return; |
376 | 376 | ||
377 | rxcb.truesize = PAGE_SIZE << hw_params(trans).rx_page_order; | ||
377 | dma_unmap_page(trans->dev, rxb->page_dma, | 378 | dma_unmap_page(trans->dev, rxb->page_dma, |
378 | PAGE_SIZE << hw_params(trans).rx_page_order, | 379 | rxcb.truesize, |
379 | DMA_FROM_DEVICE); | 380 | DMA_FROM_DEVICE); |
380 | 381 | ||
381 | rxcb._page = rxb->page; | 382 | rxcb._page = rxb->page; |