From: Felix Fietkau Date: Thu, 20 Jun 2013 13:11:31 +0000 (+0200) Subject: ath9k: fix queue depth accounting in ath_tx_txqaddbuf X-Git-Tag: v3.11-rc1~64^2~78^2^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f56e121df34563475f71efab38287b9ac028fe8c;p=pandora-kernel.git ath9k: fix queue depth accounting in ath_tx_txqaddbuf ath_tx_txqaddbuf assumes that all the linked buffers in the queue passed to it are part of the same A-MPDU or MPDU. The CAB queue rework violates this assumption, which can cause the internal queue depth to go negative. Fix this by increasing the counter for all slots of [bf, bf->bf_lastbf] Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed