mwifiex: Do not kfree cmd buf while unregistering PCIe
authorYogesh Ashok Powar <yogeshp@marvell.com>
Tue, 23 Apr 2013 23:49:49 +0000 (16:49 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Apr 2013 12:42:21 +0000 (08:42 -0400)
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>
drivers/net/wireless/mwifiex/pcie.c

index b924e1d9cf9ce78a29a43492d99678e3c00f0a94..eaf93f55e4dbd32009e00a0e878ec2e6a240c69f 100644 (file)
@@ -863,7 +863,6 @@ static int mwifiex_pcie_delete_cmdrsp_buf(struct mwifiex_adapter *adapter)
                MWIFIEX_SKB_PACB(card->cmd_buf, &buf_pa);
                pci_unmap_single(card->dev, buf_pa, MWIFIEX_SIZE_OF_CMD_BUFFER,
                                 PCI_DMA_TODEVICE);
-               dev_kfree_skb_any(card->cmd_buf);
        }
        return 0;
 }
This page took 0.033717 seconds and 5 git commands to generate.