aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index f947ac6bb67c..a29f06c0bcf0 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -509,7 +509,7 @@ static int ieee80211_set_probe_resp(struct ieee80211_sub_if_data *sdata,
509 if (!resp || !resp_len) 509 if (!resp || !resp_len)
510 return -EINVAL; 510 return -EINVAL;
511 511
512 old = sdata->u.ap.probe_resp; 512 old = rtnl_dereference(sdata->u.ap.probe_resp);
513 513
514 new = dev_alloc_skb(resp_len); 514 new = dev_alloc_skb(resp_len);
515 if (!new) 515 if (!new)