aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/lapbether.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2021-10-08 17:53:39 +0000
committerDavid S. Miller <[email protected]>2021-10-09 10:55:01 +0000
commitea52a0b58e41c3b2b9e97ff13fe0da9c9e430ea8 (patch)
treebeeede725830633b0e8314873371ce207a3f2929 /drivers/net/wan/lapbether.c
parentMerge branch 'dev_addr-direct-writes' (diff)
downloadkernel-ea52a0b58e41c3b2b9e97ff13fe0da9c9e430ea8.tar.gz
kernel-ea52a0b58e41c3b2b9e97ff13fe0da9c9e430ea8.zip
net: use dev_addr_set()
Use dev_addr_set() instead of writing directly to netdev->dev_addr in various misc and old drivers. Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
-rw-r--r--drivers/net/wan/lapbether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
index 89d31adc3809..282192b82404 100644
--- a/drivers/net/wan/lapbether.c
+++ b/drivers/net/wan/lapbether.c
@@ -301,7 +301,7 @@ static int lapbeth_set_mac_address(struct net_device *dev, void *addr)
{
struct sockaddr *sa = addr;
- memcpy(dev->dev_addr, sa->sa_data, dev->addr_len);
+ dev_addr_set(dev, sa->sa_data);
return 0;
}