Skip to contentSkip to conversation

drivers/net/niu.c: memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len)?

DISCUSSION Roel Kluin 1 participant 1 message Mar 20, 2008

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

in drivers/net/niu.c, line 6406, 6286 and 7173:

memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len);

I noticed that "

memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len)

occurs much more often (15x). could it be that the first two arguments are swapped in niu.c?