]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:41 +0000 (13:42 -0400)
commit512a344861c5b163d34685302347ff2c02197bc6
tree2d095b62420a38a40f905390756e153a916ece85
parentbeeaeeac0f3ea0ad59fbf2ff86e956b1504e16f6
iwlwifi: pcie: prevent using unmapped memory in fw monitor

[ Upstream commit 553452e5ffc0ed13214a287549627d02d9d7fbdc ]

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: c2d202017da1 ("iwlwifi: pcie: add firmware monitor capabilities")
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/wireless/iwlwifi/pcie/trans.c