cfg80211: fix a crash in the active monitor check
PATCH 1/1 cfg80211: fix a crash in the active monitor check
flags can be NULL
Signed-off-by Felix Fietkau <[email protected]>
--- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/nl80211.c +1 -1
@@ -2391,7 +2391,7 @@ static int nl80211_set_interface(struct sk_buff *skb, struct genl_info *info) change = true; } -if ((*flags &NL80211_MNTR_FLAG_ACTIVE ) && +if (flags && (*flags &NL80211_MNTR_FLAG_ACTIVE ) && !(rdev->wiphy.features &NL80211_FEATURE_ACTIVE_MONITOR ))return -EOPNOTSUPP ;
Signature · 1 line
1.8.0.2
Johannes Berg
maintainerQuoted 1 line · Felix Fietkau
flags can be NULL
I merged this into the original patch and also fixed the kernel-doc for you while at it.
johannes