diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/pcie.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/pcie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index 3c224a793b82..5f7afffdd34e 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c | |||
@@ -57,7 +57,7 @@ mwifiex_map_pci_memory(struct mwifiex_adapter *adapter, struct sk_buff *skb, | |||
57 | return -1; | 57 | return -1; |
58 | } | 58 | } |
59 | mapping.len = size; | 59 | mapping.len = size; |
60 | memcpy(skb->cb, &mapping, sizeof(mapping)); | 60 | mwifiex_store_mapping(skb, &mapping); |
61 | return 0; | 61 | return 0; |
62 | } | 62 | } |
63 | 63 | ||
@@ -67,7 +67,7 @@ static void mwifiex_unmap_pci_memory(struct mwifiex_adapter *adapter, | |||
67 | struct pcie_service_card *card = adapter->card; | 67 | struct pcie_service_card *card = adapter->card; |
68 | struct mwifiex_dma_mapping mapping; | 68 | struct mwifiex_dma_mapping mapping; |
69 | 69 | ||
70 | MWIFIEX_SKB_PACB(skb, &mapping); | 70 | mwifiex_get_mapping(skb, &mapping); |
71 | pci_unmap_single(card->dev, mapping.addr, mapping.len, flags); | 71 | pci_unmap_single(card->dev, mapping.addr, mapping.len, flags); |
72 | } | 72 | } |
73 | 73 | ||