Message ID | 1401872880-23685-3-git-send-email-Julia.Lawall@lip6.fr (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff -u -p a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -64,7 +64,7 @@ int ath10k_htt_tx_alloc_msdu_id(struct a msdu_id = find_first_zero_bit(htt->used_msdu_ids, htt->max_num_pending_tx); - if (msdu_id == htt->max_num_pending_tx) + if (msdu_id >= htt->max_num_pending_tx) return -ENOBUFS; ath10k_dbg(ATH10K_DBG_HTT, "htt tx alloc msdu_id %d\n", msdu_id);