projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a033afc
)
wifi: mac80211_hwsim: warn on invalid link address
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:39 +0000
(16:12 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Sat, 3 Sep 2022 15:03:39 +0000
(17:03 +0200)
Catch the bugs fixed in mac80211 by the previous commits
and warn if an invalid address is added (or removed).
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mac80211_hwsim.c
b/drivers/net/wireless/mac80211_hwsim.c
index 70a72a03398aef496a0a88e527a9e137e51f488c..a75420d92816a1a564a56023e85a8aa84dca5a75 100644
(file)
--- a/
drivers/net/wireless/mac80211_hwsim.c
+++ b/
drivers/net/wireless/mac80211_hwsim.c
@@
-1299,6
+1299,8
@@
static void mac80211_hwsim_config_mac_nl(struct ieee80211_hw *hw,
struct sk_buff *skb;
void *msg_head;
+ WARN_ON(!is_valid_ether_addr(addr));
+
if (!_portid && !hwsim_virtio_enabled)
return;