summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFlorian Fainelli <florian.fainelli@broadcom.com>2026-09-21 15:00:20 -0700
committerJakub Kicinski <kuba@kernel.org>2026-09-23 19:07:06 -0700
commit273941c85fc2632cd3e56ddff737b9245de7697d (patch)
tree79b881517c8026474f6888b9e380946857ed412e /tools/perf/scripts/python
parentcbbc1aee7776c7fa1d89e6cb963a23e58c495dca (diff)
net: bcmgenet: validate Ethernet address in bcmgenet_set_mac_addr
bcmgenet_set_mac_addr() did not check whether the provided MAC address is a valid Ethernet address before applying it. Userspace could configure an invalid address (such as all zeroes or a multicast address) while the interface is down. Add a call to is_valid_ether_addr() and return -EADDRNOTAVAIL if the MAC address is not valid. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://patch.msgid.link/20260921220021.281418-5-florian.fainelli@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions