]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f1e34f4a6cb08ac226290481be5ab40ed5a486a
tree5a6a4907184bfa09aac6727030a501c3b8447a38
parent3f0bac02085be79f6d2aff58dffdfbf83b39e1d4
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