Subject: Re: [PATCH net-next] net: add check for current MAC address in dev_set_mac_address

From: Jakub Kicinski <[email-masked]>
Date: Fri, 9 Jun 2023 23:44:39 -0700

On Fri,  9 Jun 2023 18:52:41 +0200 Piotr Gardocki wrote:
> +	if (ether_addr_equal(dev->dev_addr, sa->sa_data))
> +		return 0;

not every device is ethernet, you need to use dev->addr_len for
the comparison.
-- 
pw-bot: cr