]> git.baikalelectronics.ru Git - kernel.git/commit
wilc1000: free resource in wilc_wlan_txq_add_net_pkt() for failure path
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 25 Nov 2020 11:41:08 +0000 (11:41 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Dec 2020 19:38:08 +0000 (21:38 +0200)
commit19802235158312cf2dfe3629d6d25e1de233dcd2
treeac7a5c5326e79cc67709048ff5a8e6cf1fe65c50
parent3472ea5654815b55309c165d0f88a95a8fa80ff5
wilc1000: free resource in wilc_wlan_txq_add_net_pkt() for failure path

Before returing from wilc_wlan_txq_add_net_pkt() invoke tx_complete_fn()
callback to free up allocated memory for failure cases.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201125114059.10006-3-ajay.kathat@microchip.com
drivers/net/wireless/microchip/wilc1000/wlan.c