Skip to content

Commit

Permalink
[golan] Fix address-of-pointer bug for multicast attach/detach
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Aug 17, 2019
1 parent f1e6efa commit 0b3000b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/infiniband/flexboot_nodnic.c
Expand Up @@ -599,7 +599,7 @@ static int flexboot_nodnic_mcast_attach ( struct ib_device *ibdev,

switch (qp->type) {
case IB_QPT_ETH:
memcpy(&mac, &gid, sizeof(mac));
memcpy(&mac, gid, sizeof(mac));
status = nodnic_port_add_mac_filter(&port->port_priv, mac);
MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
"nodnic_port_add_mac_filter failed");
Expand All @@ -620,7 +620,7 @@ static void flexboot_nodnic_mcast_detach ( struct ib_device *ibdev,

switch (qp->type) {
case IB_QPT_ETH:
memcpy(&mac, &gid, sizeof(mac));
memcpy(&mac, gid, sizeof(mac));
status = nodnic_port_remove_mac_filter(&port->port_priv, mac);
MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
"nodnic_port_remove_mac_filter failed");
Expand Down

0 comments on commit 0b3000b

Please sign in to comment.