mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-21 20:13:58 +08:00
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: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20201125114059.10006-5-ajay.kathat@microchip.com
This commit is contained in:
parent
66aea5d198
commit
9c172f30b4
@ -258,8 +258,10 @@ static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer,
|
||||
}
|
||||
|
||||
tqe = kmalloc(sizeof(*tqe), GFP_ATOMIC);
|
||||
if (!tqe)
|
||||
if (!tqe) {
|
||||
complete(&wilc->cfg_event);
|
||||
return 0;
|
||||
}
|
||||
|
||||
tqe->type = WILC_CFG_PKT;
|
||||
tqe->buffer = buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user