wimax/i2400m: fix the race condition for accessing TX queue
authorCindy H Kao <cindy.h.kao@intel.com>
Sat, 30 Jan 2010 09:26:54 +0000 (01:26 -0800)
committerInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Tue, 11 May 2010 21:04:46 +0000 (14:04 -0700)
commitf22cf689a6353f072bca15d0a26f870e62dfacf8
tree5a6a4907184bfa09aac6727030a501c3b8447a38
parent570eb0ea65db625e0b11ca97f4ae857bc1193250
wimax/i2400m: fix the race condition for accessing TX queue

The race condition happens when the TX queue is accessed by
the TX work while the same TX queue is being destroyed because
a bus reset is triggered either by debugfs entry or simply
by failing waking up the device from WiMAX IDLE mode.

This fix is to prevent the TX queue from being accessed by
multiple threads

Signed-off-by: Cindy H Kao <cindy.h.kao@intel.com>
drivers/net/wimax/i2400m/i2400m-sdio.h
drivers/net/wimax/i2400m/sdio-tx.c