qcacmn: Remove dummy NLA parsing in driver for kernel >= 5.2

Existing dummy NLA parsers are triggering illegal memory access
with kernel versions 5.2 or later.

To resolve this, revert the change
Iea1fdcac3000ede2f8b9398cb85443e545cdd3f0 (Add dummy NLA parsing
in driver for kernel >= 5.2).

Change-Id: I8804d5aefefec248a1b82d1ca92ffaab56aa539f
CRs-Fixed: 2638303
This commit is contained in:
Bapiraju Alla
2020-03-10 11:42:41 +05:30
committed by nshrivas
parent a3dc09cce3
commit bdcc78d3ea

View File

@@ -178,7 +178,7 @@ wlan_cfg80211_nla_parse_nested(struct nlattr *tb[],
{
return nla_parse_nested(tb, maxtype, nla, policy);
}
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
#else
static inline int wlan_cfg80211_nla_parse(struct nlattr **tb,
int maxtype,
const struct nlattr *head,
@@ -196,24 +196,6 @@ wlan_cfg80211_nla_parse_nested(struct nlattr *tb[],
{
return nla_parse_nested(tb, maxtype, nla, policy, NULL);
}
#else
static inline int wlan_cfg80211_nla_parse(struct nlattr **tb,
int maxtype,
const struct nlattr *head,
int len,
const struct nla_policy *policy)
{
return 0;
}
static inline int
wlan_cfg80211_nla_parse_nested(struct nlattr *tb[],
int maxtype,
const struct nlattr *nla,
const struct nla_policy *policy)
{
return 0;
}
#endif
#define nla_parse(...) (obsolete, use wlan_cfg80211_nla_parse)
#define nla_parse_nested(...) (obsolete, use wlan_cfg80211_nla_parse_nested)