Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cea3235c authored by Rajkumar Manoharan's avatar Rajkumar Manoharan Committed by John W. Linville
Browse files

ath9k_htc: Fix free slot value for cab queue



ath9k_htc_tx_get_slot can return zero as valid index.

Signed-off-by: default avatarRajkumar Manoharan <rmanoharan@atheros.com>
Acked-by: default avatarSujith Manoharan <Sujith.Manoharan@Atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2be7859f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;