mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
ecb273bc6e
commit
8e5d332f12
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue