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 7683cb83fe46..3a00814699f0 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -866,6 +866,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata,
866 skb = ieee80211_probereq_get(&local->hw, &sdata->vif, 866 skb = ieee80211_probereq_get(&local->hw, &sdata->vif,
867 ssid, ssid_len, 867 ssid, ssid_len,
868 buf, buf_len); 868 buf, buf_len);
869 if (!skb)
870 goto out;
869 871
870 if (dst) { 872 if (dst) {
871 mgmt = (struct ieee80211_mgmt *) skb->data; 873 mgmt = (struct ieee80211_mgmt *) skb->data;
@@ -874,6 +876,8 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata,
874 } 876 }
875 877
876 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; 878 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
879
880 out:
877 kfree(buf); 881 kfree(buf);
878 882
879 return skb; 883 return skb;