]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: pcie: Fix memory leak in mwifiex_pcie_alloc_cmdrsp_buf
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Fri, 4 Oct 2019 20:08:52 +0000 (15:08 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 9 Oct 2019 08:24:52 +0000 (11:24 +0300)
commit17ef62e5603b93f16e59a7fede987d0da826c0b1
tree5ca5ecc7bfd2693bf9944992367c2358591e9c76
parentd974eee9c0d3e5adddb4b304058f3af589164ada
mwifiex: pcie: Fix memory leak in mwifiex_pcie_alloc_cmdrsp_buf

In mwifiex_pcie_alloc_cmdrsp_buf, a new skb is allocated which should be
released if mwifiex_map_pci_memory() fails. The release is added.

Fixes: bea0894f322d ("mwifiex: use pci_alloc/free_consistent APIs for PCIe")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Acked-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c