diff options
author | David S. Miller <davem@davemloft.net> | 2014-09-23 12:09:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-23 12:09:27 -0400 |
commit | 1f6d80358dc9bbbeb56cb43384fa11fd645d9289 (patch) | |
tree | 152bfa5165292a8e4f06d536b6d222a68480e573 /net/wireless/nl80211.c | |
parent | a2aeb02a8e6a9fef397c344245a54eeae67341f6 (diff) | |
parent | 98f75b8291a89ba6bf73e322ee467ce0bfeb91c1 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
arch/mips/net/bpf_jit.c
drivers/net/can/flexcan.c
Both the flexcan and MIPS bpf_jit conflicts were cases of simple
overlapping changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 3011401f52c0..233c54e45092 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -6977,6 +6977,9 @@ void __cfg80211_send_event_skb(struct sk_buff *skb, gfp_t gfp) | |||
6977 | struct nlattr *data = ((void **)skb->cb)[2]; | 6977 | struct nlattr *data = ((void **)skb->cb)[2]; |
6978 | enum nl80211_multicast_groups mcgrp = NL80211_MCGRP_TESTMODE; | 6978 | enum nl80211_multicast_groups mcgrp = NL80211_MCGRP_TESTMODE; |
6979 | 6979 | ||
6980 | /* clear CB data for netlink core to own from now on */ | ||
6981 | memset(skb->cb, 0, sizeof(skb->cb)); | ||
6982 | |||
6980 | nla_nest_end(skb, data); | 6983 | nla_nest_end(skb, data); |
6981 | genlmsg_end(skb, hdr); | 6984 | genlmsg_end(skb, hdr); |
6982 | 6985 | ||
@@ -9302,6 +9305,9 @@ int cfg80211_vendor_cmd_reply(struct sk_buff *skb) | |||
9302 | void *hdr = ((void **)skb->cb)[1]; | 9305 | void *hdr = ((void **)skb->cb)[1]; |
9303 | struct nlattr *data = ((void **)skb->cb)[2]; | 9306 | struct nlattr *data = ((void **)skb->cb)[2]; |
9304 | 9307 | ||
9308 | /* clear CB data for netlink core to own from now on */ | ||
9309 | memset(skb->cb, 0, sizeof(skb->cb)); | ||
9310 | |||
9305 | if (WARN_ON(!rdev->cur_cmd_info)) { | 9311 | if (WARN_ON(!rdev->cur_cmd_info)) { |
9306 | kfree_skb(skb); | 9312 | kfree_skb(skb); |
9307 | return -EINVAL; | 9313 | return -EINVAL; |