]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: fix race in queue unmapping
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 13 Jun 2013 08:45:59 +0000 (11:45 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Jun 2013 14:43:55 +0000 (16:43 +0200)
commit5c0491c999f9a12e53d36e578592cf3a1c3694bf
treee91c153f858540e04ed6d7cf9261cb5a711feb21
parenta660d49ca57a306477fb4bc1527310745151721b
iwlwifi: pcie: fix race in queue unmapping

When a queue is disabled, it frees all its entries. Later,
the op_mode might still get notifications from the firmware
that triggers to free entries in the tx queue. The transport
should be prepared for these races and know to ignore
reclaim calls on queues that have been disabled and whose
entries have been freed.

Cc: stable@vger.kernel.org
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/tx.c