]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: prevent using unmapped memory in fw monitor
authorLiad Kaufman <liad.kaufman@intel.com>
Thu, 16 Apr 2015 14:21:12 +0000 (17:21 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 20 Apr 2015 05:53:20 +0000 (08:53 +0300)
commit7bd2f09728bc84c6ba47c2181eab0b4b958d63e2
treee34260bde05b2c2a767bce6a8a647236eefde360
parentb5e4cafc25d8baacbba37b40fc4aa0a4ace7bd18
iwlwifi: pcie: prevent using unmapped memory in fw monitor

In the case of a DMA mapping error on the last iteration of
the loop of the allocation of memory of the FW monitor we
indeed free the pages, but don't NULL out the page variable
thus allowing for the possibility of setting the FW monitor
variables with invalid data to use.

Fixes: 7ce29e2bfde7 ("iwlwifi: pcie: add firmware monitor capabilities")
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c