diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2016-07-15 19:07:05 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-07-18 22:42:57 +0300 |
commit | 2fd40d2d349f0faf49460b4eca3f49dfe9094619 (patch) | |
tree | 96a83627809d61d830a081ab0dd1fda6e375d07c /drivers/net/wireless/marvell/mwifiex | |
parent | 514952889544fcb069bbedfec4aa624fc9e26c4b (diff) | |
download | op-kernel-dev-2fd40d2d349f0faf49460b4eca3f49dfe9094619.zip op-kernel-dev-2fd40d2d349f0faf49460b4eca3f49dfe9094619.tar.gz |
mwifiex: update command response skb length correctly
Same skb is being reused for storing command response from firmware
in PCIe chipsets. There was a bug while updating the skb length.
This patch ensures skb length correctly gets updated based on rx_len.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/pcie.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c index 12d0ee1..453ab6a 100644 --- a/drivers/net/wireless/marvell/mwifiex/pcie.c +++ b/drivers/net/wireless/marvell/mwifiex/pcie.c @@ -1616,6 +1616,7 @@ static int mwifiex_pcie_process_cmd_complete(struct mwifiex_adapter *adapter) pkt_len = *((__le16 *)skb->data); rx_len = le16_to_cpu(pkt_len); + skb_put(skb, MWIFIEX_UPLD_SIZE - skb->len); skb_trim(skb, rx_len); skb_pull(skb, INTF_HEADER_LEN); |