From: Felix Fietkau Date: Mon, 24 Feb 2014 21:26:06 +0000 (+0100) Subject: ath9k: fix invalid descriptor discarding X-Git-Tag: v3.14-rc6~30^2~20^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b146c9c9a0248cc57da71244f672ebc54bbef1;p=pandora-kernel.git ath9k: fix invalid descriptor discarding Only set sc->rx.discard_next to rx_stats->rs_more when actually discarding the current descriptor. Also, fix a detection of broken descriptors: First the code checks if the current descriptor is not done. Then it checks if the next descriptor is done. Add a check that afterwards checks the first descriptor again, because it might have been completed in the mean time. This fixes a regression introduced in commit 723e711356b5a8a95728a890e254e8b0d47b55cf "ath9k: fix handling of broken descriptors" Cc: stable@vger.kernel.org Reported-by: Marco André Dinis Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed