rt2x00: fix order of entry flags modification
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 10 Aug 2011 13:32:23 +0000 (15:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 11 Aug 2011 18:34:36 +0000 (14:34 -0400)
commitdf71c9cfceea801e7e26e2c74241758ef9c042e5
tree72862348e9aa9f774dabdc9ff80e1aab0651d86a
parent4b1bfb7d2d125af6653d6c2305356b2677f79dc6
rt2x00: fix order of entry flags modification

In rt2800usb_work_txdone we check flags in order:

- ENTRY_OWNER_DEVICE_DATA
- ENTRY_DATA_STATUS_PENDING
- ENTRY_DATA_IO_FAILED

Modify flags in separate order in rt2x00usb_interrupt_txdone, to avoid
processing entries in _txdone with wrong flags or skip processing
ready entries.

Reported-by: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: stable@kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00usb.c