ath10k: fix num_sends_allowed replenishing
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 18 Sep 2013 13:22:17 +0000 (15:22 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 20 Sep 2013 05:04:31 +0000 (08:04 +0300)
commit1073ab2e9b0d45f318052a3f3690405fc04eda75
tree0d99b4248ea8b186e8cc451ed1d371c8ce8f0c93
parent9e84f653ac16b718dd2305abe64a29bb3428621e
ath10k: fix num_sends_allowed replenishing

Commit e9bb0aa39 ("ath10k: delete struct ce_sendlist") broke
num_sends_allowed incrementing. num_sends_allowed
exceeded initial values and could overflow.

This code was supposed to replenish
num_sends_allowed for partial sendlist items (i.e.
before final sendlist item from a sendlist was
completed and could be processed by completion
handlers).

Fortunately it seems it did not cause any major breakage,
yet.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c