]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: fix possible undetected invalid MAC address
authorShayne Chen <shayne.chen@mediatek.com>
Tue, 26 Nov 2019 13:15:54 +0000 (21:15 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:00 +0000 (10:06 +0100)
commit97565801ee1ebfa4f67136f2a551096c688ffe85
tree8f5f734e6f370341a6f730f304690ebafca225c1
parent1ed8876547c020ea8fb58a78653de1f06372c4cc
mt76: fix possible undetected invalid MAC address

Make sure the MAC address is checked before function returns.

If CONFIG_OF is set and the device node is null, the function will
return directly, and an invalid MAC address will not be checked.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/eeprom.c