diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2013-04-23 19:49:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-26 08:42:21 -0400 |
commit | 955ab095c51a6f5a105aaeff4fc8e32c2ee94814 (patch) | |
tree | 9480278fae666aa07b2060fd2dda0b3b256fcdbb /drivers/net/wireless | |
parent | 5b0d9b218b74042ff72bf4bfda6eeb2e4bf98397 (diff) |
mwifiex: Do not kfree cmd buf while unregistering PCIe
All the command buffers are freed in mwifiex_free_cmd_buffer()
and hence there is no need to kfree the current command buffer
again. This might ends up freeing memory allocated by some other
kernel code.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/mwifiex/pcie.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index b924e1d9cf9c..eaf93f55e4db 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c | |||
@@ -863,7 +863,6 @@ static int mwifiex_pcie_delete_cmdrsp_buf(struct mwifiex_adapter *adapter) | |||
863 | MWIFIEX_SKB_PACB(card->cmd_buf, &buf_pa); | 863 | MWIFIEX_SKB_PACB(card->cmd_buf, &buf_pa); |
864 | pci_unmap_single(card->dev, buf_pa, MWIFIEX_SIZE_OF_CMD_BUFFER, | 864 | pci_unmap_single(card->dev, buf_pa, MWIFIEX_SIZE_OF_CMD_BUFFER, |
865 | PCI_DMA_TODEVICE); | 865 | PCI_DMA_TODEVICE); |
866 | dev_kfree_skb_any(card->cmd_buf); | ||
867 | } | 866 | } |
868 | return 0; | 867 | return 0; |
869 | } | 868 | } |