Skip to content

Commit 4a99ab5

Browse files
Shahed Shaikhdavem330
Shahed Shaikh
authored andcommitted
qlcnic: Fix MAC address filter issue on 82xx adapter
Driver was passing the address of a pointer instead of the pointer itself. Signed-off-by: Shahed Shaikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b6bb1c6 commit 4a99ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void qlcnic_82xx_change_filter(struct qlcnic_adapter *adapter, u64 *uaddr,
262262

263263
mac_req = (struct qlcnic_mac_req *)&(req->words[0]);
264264
mac_req->op = vlan_id ? QLCNIC_MAC_VLAN_ADD : QLCNIC_MAC_ADD;
265-
memcpy(mac_req->mac_addr, &uaddr, ETH_ALEN);
265+
memcpy(mac_req->mac_addr, uaddr, ETH_ALEN);
266266

267267
vlan_req = (struct qlcnic_vlan_req *)&req->words[1];
268268
vlan_req->vlan_id = cpu_to_le16(vlan_id);

0 commit comments

Comments
 (0)