mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mac80211: reject zero MAC address in add station
This came up in fuzz testing, and really we don't consider all-zeroes to be a valid MAC address in most places, so also reject it here to avoid confusion later on. Signed-off-by: Karthikeyan Periyasamy <[email protected]> Link: https://lore.kernel.org/r/[email protected] [rewrite commit message] Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
50508d941c
commit
52dba8d7d5
1 changed files with 1 additions and 1 deletions
|
|
@ -1543,7 +1543,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
|
|||
if (ether_addr_equal(mac, sdata->vif.addr))
|
||||
return -EINVAL;
|
||||
|
||||
if (is_multicast_ether_addr(mac))
|
||||
if (!is_valid_ether_addr(mac))
|
||||
return -EINVAL;
|
||||
|
||||
sta = sta_info_alloc(sdata, mac, GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue