]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: don't unmap as page memory that was mapped as single
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 21 Jul 2019 11:02:27 +0000 (14:02 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Jul 2019 16:34:31 +0000 (18:34 +0200)
commita974286d0b6ed842ede32fa0540f279dffdabe58
treed68aeb1570ef063d5814c4ddca9a323338045a9a
parent742d892d370c5d6f8b5add8e0ead5f9393866bb9
iwlwifi: don't unmap as page memory that was mapped as single

In order to remember how to unmap a memory (as single or
as page), we maintain a bit per Transmit Buffer (TBs) in
the meta data (structure iwl_cmd_meta).
We maintain a bitmap: 1 bit per TB.
If the TB is set, we will free the memory as a page.
This bitmap was never cleared. Fix this.

Cc: stable@vger.kernel.org
Fixes: 308ded6a8260 ("iwlwifi: pcie: introduce new tfd and tb formats")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx.c