aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2019-08-17 17:51:18 +0100
committerMichael Brown <mcb30@ipxe.org>2019-08-17 17:51:18 +0100
commit0b3000bbece3f96d1c4e00aaf93968f6905105bb (patch)
treed394708697bea1beb4bd22740ed6d924ea063d53
parentf1e6efa40be7bee1b29eb7ef7af5d0192edb888a (diff)
downloadipxe-0b3000bbece3f96d1c4e00aaf93968f6905105bb.zip
ipxe-0b3000bbece3f96d1c4e00aaf93968f6905105bb.tar.gz
ipxe-0b3000bbece3f96d1c4e00aaf93968f6905105bb.tar.bz2
[golan] Fix address-of-pointer bug for multicast attach/detach
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/drivers/infiniband/flexboot_nodnic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/infiniband/flexboot_nodnic.c b/src/drivers/infiniband/flexboot_nodnic.c
index c13fcef..93bb054 100644
--- a/src/drivers/infiniband/flexboot_nodnic.c
+++ b/src/drivers/infiniband/flexboot_nodnic.c
@@ -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");
@@ -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");