OSDN Git Service

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)
commit54f3f994e9964466855e11068c0f7d952d58b260
tree0147020fa25e49eb2ce135978f8d3dfcf5bc3f9b
parent82715ac71e6b94a2c2136e31f3a8e6748e33aa8c
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: 2d8c261511ab ("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