ath9k: fix possible hang on flush
authorTim Harvey <[email protected]>
Mon, 21 Apr 2014 23:14:56 +0000 (16:14 -0700)
committerJohn W. Linville <[email protected]>
Tue, 22 Apr 2014 18:09:37 +0000 (14:09 -0400)
commit3a758134e66ca74a9df792616b5288b2fa2cfd7f
tree368a5ae3ebd1dfbf016aff9934ee61fc0dc43c84
parent328e203fc35f0b4f6df1c4943f74cf553bcc04f8
ath9k: fix possible hang on flush

If a flush is requested, make sure to clear the descriptor once we've
processed it.

This resolves a hang that will occur if all RX descriptors are full when a
flush is requested.

Signed-off-by: Tim Harvey <[email protected]>
Acked-by: Felix Fietkau <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/ath/ath9k/recv.c