forked from Minki/linux
ath9k_htc: Fix free slot value for cab queue
ath9k_htc_tx_get_slot can return zero as valid index. Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Acked-by: Sujith Manoharan <Sujith.Manoharan@Atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2be7859f41
commit
cea3235cf5
@ -322,7 +322,7 @@ static void ath9k_htc_send_buffered(struct ath9k_htc_priv *priv,
|
||||
}
|
||||
|
||||
tx_slot = ath9k_htc_tx_get_slot(priv);
|
||||
if (tx_slot != 0) {
|
||||
if (tx_slot < 0) {
|
||||
ath_dbg(common, ATH_DBG_XMIT, "No free CAB slot\n");
|
||||
dev_kfree_skb_any(skb);
|
||||
goto next;
|
||||
|
Loading…
Reference in New Issue
Block a user