diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-10-10 07:27:02 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:11 -0400 |
commit | 984ecb9293b77901947f3ade5f7e1a70bfc7d940 (patch) | |
tree | 478b235d7c457350049ddf6ee91425e37f050696 /lib/gcd.c | |
parent | b319d3eb964a602dd1f77bd04b033c40f896e06f (diff) |
iwlagn: fix a race in the unmapping of the TFDs
While inspecting the code, I saw that iwl_tx_queue_unmap modifies
the read pointer of the Tx queue without taking any locks. This means
that it can race with the reclaim flow. This can possibly lead to
a DMA warning complaining that we unmap the same buffer twice.
This is more a W/A than a fix since it is really weird to take
sta_lock inside iwl_tx_queue_unmap, but it can help until we revamp
the locking model in the transport layer.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'lib/gcd.c')
0 files changed, 0 insertions, 0 deletions