Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298480
b: refs/heads/master
c: 81213b5
h: refs/heads/master
v: v3
  • Loading branch information
danborkmann@iogearbox.net authored and David S. Miller committed Apr 1, 2012
1 parent 33a4a3f commit 40a761f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 464b57da56910c8737ede75ad820b9a7afc46b3e
refs/heads/master: 81213b5e8ae68e204aa7a3f83c4f9100405dbff9
4 changes: 2 additions & 2 deletions trunk/net/rose/rose_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ static int rose_set_mac_address(struct net_device *dev, void *addr)
struct sockaddr *sa = addr;
int err;

if (!memcpy(dev->dev_addr, sa->sa_data, dev->addr_len))
if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len))
return 0;

if (dev->flags & IFF_UP) {
err = rose_add_loopback_node((rose_address *)dev->dev_addr);
err = rose_add_loopback_node((rose_address *)sa->sa_data);
if (err)
return err;

Expand Down

0 comments on commit 40a761f

Please sign in to comment.