Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203127
b: refs/heads/master
c: 42f65cb
h: refs/heads/master
i:
  203125: b92637d
  203123: d0ebecc
  203119: da0e886
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Jun 23, 2010
1 parent 3714bf1 commit 3d76b64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 900c6cfffac668199aaa30a20e31d07602f8a8ce
refs/heads/master: 42f65cbad4168958dff8a307bfe4b528409951d3
11 changes: 8 additions & 3 deletions trunk/drivers/net/qlcnic/qlcnic_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,15 @@ static int qlcnic_nic_add_mac(struct qlcnic_adapter *adapter, u8 *addr)
return -ENOMEM;
}
memcpy(cur->mac_addr, addr, ETH_ALEN);
list_add_tail(&cur->list, &adapter->mac_list);

return qlcnic_sre_macaddr_change(adapter,
cur->mac_addr, QLCNIC_MAC_ADD);
if (qlcnic_sre_macaddr_change(adapter,
cur->mac_addr, QLCNIC_MAC_ADD)) {
kfree(cur);
return -EIO;
}

list_add_tail(&cur->list, &adapter->mac_list);
return 0;
}

void qlcnic_set_multi(struct net_device *netdev)
Expand Down

0 comments on commit 3d76b64

Please sign in to comment.