Skip to content

Commit

Permalink
wilc1000: call complete() for failure in wilc_wlan_txq_add_cfg_pkt()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ajay Singh authored and Kalle Valo committed Dec 2, 2020
1 parent 66aea5d commit 9c172f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/microchip/wilc1000/wlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9c172f3

Please sign in to comment.