aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index f1370ed9f498..e20c27ff0f14 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -11094,6 +11094,8 @@ void cfg80211_report_wowlan_wakeup(struct wireless_dev *wdev,
11094 struct nlattr *reasons; 11094 struct nlattr *reasons;
11095 11095
11096 reasons = nla_nest_start(msg, NL80211_ATTR_WOWLAN_TRIGGERS); 11096 reasons = nla_nest_start(msg, NL80211_ATTR_WOWLAN_TRIGGERS);
11097 if (!reasons)
11098 goto free_msg;
11097 11099
11098 if (wakeup->disconnect && 11100 if (wakeup->disconnect &&
11099 nla_put_flag(msg, NL80211_WOWLAN_TRIG_DISCONNECT)) 11101 nla_put_flag(msg, NL80211_WOWLAN_TRIG_DISCONNECT))