diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-06-25 10:04:51 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-07-20 21:37:32 +0200 |
commit | 91046d6364afde646734c7ead1f649d253c386e9 (patch) | |
tree | 7e7d15e51fd665da2725cbf7de88d33fa22e62c3 /include | |
parent | 1667e4f9bcfb6785362a300ac4486df0854a72aa (diff) | |
download | linux-91046d6364afde646734c7ead1f649d253c386e9.tar.bz2 |
nl80211: fix VENDOR_CMD_RAW_DATA
Since ERR_PTR() is an inline, not a macro, just open-code it
here so it's usable as an initializer, fixing the build in
brcmfmac.
Reported-by: Arend Van Spriel <arend.vanspriel@broadcom.com>
Fixes: 901bb9891855 ("nl80211: require and validate vendor command policy")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 88c27153a4bc..45850a8391d9 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -4170,7 +4170,7 @@ struct sta_opmode_info { u8 rx_nss; }; -#define VENDOR_CMD_RAW_DATA ((const struct nla_policy *)ERR_PTR(-ENODATA)) +#define VENDOR_CMD_RAW_DATA ((const struct nla_policy *)(long)(-ENODATA)) /** * struct wiphy_vendor_command - vendor command definition |