]> git.baikalelectronics.ru Git - kernel.git/commit
etherdevice: use __dev_addr_set()
authorJakub Kicinski <kuba@kernel.org>
Mon, 4 Oct 2021 23:01:40 +0000 (16:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 11:38:39 +0000 (12:38 +0100)
commitb5bf2356378ec13ec7eab6bb403a09d0bf6a7b8d
tree4d820d2f07d0a55702e5f31e0ca31f14e8da7052
parent4869033d1e96f0572573ddd24710ec9f45e4600b
etherdevice: use __dev_addr_set()

Andrew points out that eth_hw_addr_set() replaces memcpy()
calls so we can't use ether_addr_copy() which assumes
both arguments are 2-bytes aligned.

Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/etherdevice.h