net: remove needless (now buggy) & from dev->dev_addr
Patch fixes issues with dev->dev_addr changing from array to pointer. Hopefully there are no others. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8b3521eeb7
commit
3a6d54c563
@ -167,7 +167,7 @@ static int enable_bearer(struct tipc_bearer *tb_ptr)
|
||||
tb_ptr->mtu = dev->mtu;
|
||||
tb_ptr->blocked = 0;
|
||||
tb_ptr->addr.type = htonl(TIPC_MEDIA_TYPE_ETH);
|
||||
memcpy(&tb_ptr->addr.dev_addr, &dev->dev_addr, ETH_ALEN);
|
||||
memcpy(&tb_ptr->addr.dev_addr, dev->dev_addr, ETH_ALEN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user