]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix D3 debug data buffer memory leak
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Mon, 20 Aug 2018 14:16:21 +0000 (17:16 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 15 Nov 2018 21:50:59 +0000 (23:50 +0200)
commit7c3653525dea3de685c02deb255fa433ca77eaba
tree0147020fa25e49eb2ce135978f8d3dfcf5bc3f9b
parent46a133d4d664ec5c9eb63a527a196b73a87fefb6
iwlwifi: fix D3 debug data buffer memory leak

If the driver is unloaded when D3 debug data pulling is enabled
but not triggered, it doesn't release the data buffer.

Fix this by adding iwl_fw_runtime_free and calling it from the
relevant places.

Fixes: 35b261e2bd37 ("iwlwifi: add d3 debug data support")
Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/runtime.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c