diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-02-24 22:26:06 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-25 14:54:11 -0500 |
commit | b7b146c9c9a0248cc57da71244f672ebc54bbef1 (patch) | |
tree | c08be095b4713f0bf514e555a330195a9ca2b043 /net | |
parent | d31a36a6d87f68c3b97193bfca11e99d0cc385f7 (diff) | |
download | linux-b7b146c9c9a0248cc57da71244f672ebc54bbef1.tar.gz linux-b7b146c9c9a0248cc57da71244f672ebc54bbef1.tar.bz2 linux-b7b146c9c9a0248cc57da71244f672ebc54bbef1.zip |
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 <marcoandredinis@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions