|
|
@@ -1750,8 +1750,10 @@ static void iwl_mvm_query_netdetect_reasons(struct iwl_mvm *mvm,
|
|
|
int i, j, n_matches, ret;
|
|
|
|
|
|
fw_status = iwl_mvm_get_wakeup_status(mvm, vif);
|
|
|
- if (!IS_ERR_OR_NULL(fw_status))
|
|
|
+ if (!IS_ERR_OR_NULL(fw_status)) {
|
|
|
reasons = le32_to_cpu(fw_status->wakeup_reasons);
|
|
|
+ kfree(fw_status);
|
|
|
+ }
|
|
|
|
|
|
if (reasons & IWL_WOWLAN_WAKEUP_BY_RFKILL_DEASSERTED)
|
|
|
wakeup.rfkill_release = true;
|