mac80211: reject zero MAC address in add station
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Wed, 24 Jul 2019 09:16:10 +0000 (14:46 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2019 09:00:52 +0000 (11:00 +0200)
commit52dba8d7d5aba65f818bd27603ae10ebc006ab3b
tree7643050ea2c2a837e2043662ed802cdd42bdd0dc
parent50508d941c180a105fdba802d5af1abf3d93a625
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 <periyasa@codeaurora.org>
Link: https://lore.kernel.org/r/1563959770-21570-1-git-send-email-periyasa@codeaurora.org
[rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c