From: Shahed Shaikh Date: Sat, 3 Aug 2013 03:15:54 +0000 (-0400) Subject: qlcnic: Fix MAC address filter issue on 82xx adapter X-Git-Tag: upstream/snapshot3+hdmi~4603^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a99ab56cea66f9f67b9d07ace5cd40a336c8e6f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c index d3f8797..82a03d3 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c @@ -262,7 +262,7 @@ void qlcnic_82xx_change_filter(struct qlcnic_adapter *adapter, u64 *uaddr, mac_req = (struct qlcnic_mac_req *)&(req->words[0]); mac_req->op = vlan_id ? QLCNIC_MAC_VLAN_ADD : QLCNIC_MAC_ADD; - memcpy(mac_req->mac_addr, &uaddr, ETH_ALEN); + memcpy(mac_req->mac_addr, uaddr, ETH_ALEN); vlan_req = (struct qlcnic_vlan_req *)&req->words[1]; vlan_req->vlan_id = cpu_to_le16(vlan_id);