projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
955ab09
)
mwifiex: Correct pci_unmap_single's size
author
Yogesh Ashok Powar
<
[email protected]
>
Tue, 23 Apr 2013 23:49:50 +0000
(16:49 -0700)
committer
John W. Linville
<
[email protected]
>
Fri, 26 Apr 2013 12:42:22 +0000
(08:42 -0400)
There exist mismatch between the size used for pci_map and
pci_unmap on command skb. Correcting it.
Signed-off-by: Amitkumar Karwar <
[email protected]
>
Signed-off-by: Avinash Patil <
[email protected]
>
Signed-off-by: Yogesh Ashok Powar <
[email protected]
>
Signed-off-by: Bing Zhao <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/mwifiex/pcie.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mwifiex/pcie.c
b/drivers/net/wireless/mwifiex/pcie.c
index eaf93f55e4dbd32009e00a0e878ec2e6a240c69f..20c9c4c7b0b2eb64fa75bd4180fd85015d77b33e 100644
(file)
--- a/
drivers/net/wireless/mwifiex/pcie.c
+++ b/
drivers/net/wireless/mwifiex/pcie.c
@@
-861,7
+861,7
@@
static int mwifiex_pcie_delete_cmdrsp_buf(struct mwifiex_adapter *adapter)
if (card && card->cmd_buf) {
MWIFIEX_SKB_PACB(card->cmd_buf, &buf_pa);
- pci_unmap_single(card->dev, buf_pa,
MWIFIEX_SIZE_OF_CMD_BUFFER
,
+ pci_unmap_single(card->dev, buf_pa,
card->cmd_buf->len
,
PCI_DMA_TODEVICE);
}
return 0;
@@
-1572,7
+1572,7
@@
static int mwifiex_pcie_cmdrsp_complete(struct mwifiex_adapter *adapter,
skb_tmp = card->cmd_buf;
if (skb_tmp) {
MWIFIEX_SKB_PACB(skb_tmp, &buf_pa);
- pci_unmap_single(card->dev, buf_pa,
MWIFIEX_UPLD_SIZE
,
+ pci_unmap_single(card->dev, buf_pa,
skb_tmp->len
,
PCI_DMA_FROMDEVICE);
card->cmd_buf = NULL;
}