]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:13:58 +0000 (10:13 +0200)
commit5557083f8577fb2d36862b46a405d37ecd54ffff
tree767250a9ca0d6db6e4d1437ee44751c88b6ce4a5
parentc12ea355ef01fc3fe90500cd6da0940e3218e740
iwlwifi: don't unmap as page memory that was mapped as single

commit 87e7e25aee6b59fef740856f4e86d4b60496c9e1 upstream.

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: 3cd1980b0cdf ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/pcie/tx.c