]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2013 01:21:30 +0000 (18:21 -0700)
commitf4ab9ece03dfc4b15c63b5fd5506183554976903
treeb00c9ab3f0805e23977311a1aeb2be8543c673c9
parent65a1fb23bc5b2f21b44f8b81c89ccda808b3b321
iwlwifi: pcie: fix race in queue unmapping

commit b967613d7e7c7bad176f5627c55e2d8c5aa2480e upstream.

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.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/pcie/tx.c