Message ID | 1623231595-33851-3-git-send-email-huangguangbin2@huawei.com |
---|---|
State | New |
Headers | show |
Series | net: lapbether: clean up some code style issues | expand |
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index bb529ef..b6aef7b 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -303,6 +303,7 @@ static void lapbeth_disconnected(struct net_device *dev, int reason) 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); return 0; }