From: Michal Kazior Date: Tue, 3 Sep 2013 13:09:58 +0000 (+0200) Subject: ath10k: prevent CE from looping indefinitely X-Git-Tag: v3.13-rc1~105^2~225^2~25^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5440ce253779fd42ae3b0df64d77430274079ab7;p=pandora-kernel.git ath10k: prevent CE from looping indefinitely The double while() could end up running forever. Inner while() would complete very fast. However the completion processing could take enough time for more completions to flow in. In that case the outer while() would not terminate and run again, and again. This could happen especially on a slow host system. This could lead to a system freeze during heavy traffic. Note: this doesn't solve all known starvation issues yet. Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- Reading git-diff-tree failed