]> 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)
commitf3b03dcdf593145d5d3c4ddb40f1f998563b450a
tree0147020fa25e49eb2ce135978f8d3dfcf5bc3f9b
parented07388696277e943b628781f77c86512b6e0929
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: 614e0edf7e3a ("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