提交 cea3235c 编写于 作者: R Rajkumar Manoharan 提交者: John W. Linville

ath9k_htc: Fix free slot value for cab queue

ath9k_htc_tx_get_slot can return zero as valid index.
Signed-off-by: NRajkumar Manoharan <rmanoharan@atheros.com>
Acked-by: NSujith Manoharan <Sujith.Manoharan@Atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 2be7859f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册