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)
commit955ab095c51a6f5a105aaeff4fc8e32c2ee94814
tree9480278fae666aa07b2060fd2dda0b3b256fcdbb
parent5b0d9b218b74042ff72bf4bfda6eeb2e4bf98397
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>
drivers/net/wireless/mwifiex/pcie.c