Commit 9c172f30 authored by Ajay Singh's avatar Ajay Singh Committed by Kalle Valo

wilc1000: call complete() for failure in wilc_wlan_txq_add_cfg_pkt()

Added complete() call for failure case in wilc_wlan_txq_add_cfg_pkt().
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201125114059.10006-5-ajay.kathat@microchip.com
parent 66aea5d1
...@@ -258,8 +258,10 @@ static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer, ...@@ -258,8 +258,10 @@ static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer,
} }
tqe = kmalloc(sizeof(*tqe), GFP_ATOMIC); tqe = kmalloc(sizeof(*tqe), GFP_ATOMIC);
if (!tqe) if (!tqe) {
complete(&wilc->cfg_event);
return 0; return 0;
}
tqe->type = WILC_CFG_PKT; tqe->type = WILC_CFG_PKT;
tqe->buffer = buffer; tqe->buffer = buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment