qcacld-3.0: validate vendor get station command

Currently in __hdd_cfg80211_get_station_cmd there are two
attributes which are not properly validated.

Define an appropriate nla_policy and specify this policy when
invoking nla_parse().

CRs-Fixed: 2054741
Change-Id: I36e12f001b05069c8e06adb1f264392232b13bfb
This commit is contained in:
SaidiReddy Yenuga 2017-06-07 17:58:07 +05:30 • committed by snandini
commit 8e5d332f12

View file

@ -4272,7 +4272,7 @@ __hdd_cfg80211_get_station_cmd(struct wiphy *wiphy,
status = nla_parse(tb, QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX,
data, data_len, NULL);
data, data_len, hdd_get_station_policy);
if (status) {
hdd_err("Invalid ATTR");
goto out;