rt2x00: Introduce extra queue entry sanity flag
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 13 Dec 2010 11:36:18 +0000 (12:36 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Dec 2010 20:23:36 +0000 (15:23 -0500)
commitdba5dc1ae9764902f46d5225c9ff40e4f7b614c7
tree693be19fa299bad11310e394fb06c0d4effb898b
parent64e7d72384c2ecef5a892b2243623af265dd83cc
rt2x00: Introduce extra queue entry sanity flag

Add a queue entry flag ENTRY_DATA_STATUS_PENDING,
which can be used to indicate a queue entry has
returned from the hardware and is waiting for
status processing. Using this flag we can add
some extra sanity checks to prevent queue corruption.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00queue.h
drivers/net/wireless/rt2x00/rt2x00usb.c