From 8e5d332f123760e8c4f3dbf803640e70cc644457 Mon Sep 17 00:00:00 2001 From: SaidiReddy Yenuga Date: Wed, 7 Jun 2017 17:58:07 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index b20c87f623d9..b77e682b35eb 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -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;