netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/niu.c: memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len)?
@ 2008-03-20 21:01 Roel Kluin
  2008-03-20 21:25 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Roel Kluin @ 2008-03-20 21:01 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

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?

^ permalink raw reply	[flat|nested] 5+ messages in thread
* drivers/net/niu.c: memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len)?
@ 2008-03-20 21:01 Roel Kluin
  0 siblings, 0 replies; 5+ messages in thread
From: Roel Kluin @ 2008-03-20 21:01 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-21 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-20 21:01 drivers/net/niu.c: memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len)? Roel Kluin
2008-03-20 21:25 ` David Miller
2008-03-20 23:01   ` Roel Kluin
2008-03-21 13:07     ` Kalle Valo
  -- strict thread matches above, loose matches on Subject: below --
2008-03-20 21:01 Roel Kluin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).