projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c317a0
)
nl80211: correctly use nl80211_nan_srf_policy
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 17 Oct 2016 06:02:48 +0000
(08:02 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 17 Oct 2016 06:02:48 +0000
(08:02 +0200)
This was clearly intended to be used in the attribute parsing,
so do that instead of leaving the attribute policy unused.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index 903cd5a5d1cebd06162090c0f14e27cab4a79ac3..65c0a1771fd573e0b3e3280ca6157f69d02ea915 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-10786,7
+10786,8
@@
static int nl80211_nan_add_func(struct sk_buff *skb,
err = nla_parse(srf_tb, NL80211_NAN_SRF_ATTR_MAX,
nla_data(tb[NL80211_NAN_FUNC_SRF]),
- nla_len(tb[NL80211_NAN_FUNC_SRF]), NULL);
+ nla_len(tb[NL80211_NAN_FUNC_SRF]),
+ nl80211_nan_srf_policy);
if (err)
goto out;