diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-11-19 03:51:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-28 14:36:21 -0500 |
commit | f724828bd3db7e0fe6f17ed8de2656bfbfed5c4e (patch) | |
tree | 3648c1f8704cd952fddf6c34d36188e8a6c4e8bd /net/mac80211 | |
parent | 6674f210e9dbf30e592ccd85b0cf90bd8d1d2d28 (diff) |
mac80211: dereference RCU protected probe_resp pointer correctly
This fixes a sparse warning:
cfg.c:502:13: warning: incorrect type in assignment (different address spaces)
cfg.c:502:13: expected struct sk_buff *old
cfg.c:502:13: got struct sk_buff [noderef] <asn:4>*probe_resp
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/cfg.c | 2 |
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) |