aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 7439d26bf5f9..0c9490722aa5 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -880,6 +880,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata,
880 skb = ieee80211_probereq_get(&local->hw, &sdata->vif, 880 skb = ieee80211_probereq_get(&local->hw, &sdata->vif,
881 ssid, ssid_len, 881 ssid, ssid_len,
882 buf, buf_len); 882 buf, buf_len);
883 if (!skb)
884 goto out;
883 885
884 if (dst) { 886 if (dst) {
885 mgmt = (struct ieee80211_mgmt *) skb->data; 887 mgmt = (struct ieee80211_mgmt *) skb->data;
@@ -888,6 +890,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata,
888 } 890 }
889 891
890 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; 892 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
893
894 out:
891 kfree(buf); 895 kfree(buf);
892 896
893 return skb; 897 return skb;