Browse Source

[golan] Fix address-of-pointer bug for multicast attach/detach

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 5 years ago
parent
commit
0b3000bbec
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/infiniband/flexboot_nodnic.c

+ 2
- 2
src/drivers/infiniband/flexboot_nodnic.c View File

@@ -599,7 +599,7 @@ static int flexboot_nodnic_mcast_attach ( struct ib_device *ibdev,
599 599
 
600 600
 	switch (qp->type) {
601 601
 	case IB_QPT_ETH:
602
-		memcpy(&mac, &gid, sizeof(mac));
602
+		memcpy(&mac, gid, sizeof(mac));
603 603
 		status = nodnic_port_add_mac_filter(&port->port_priv, mac);
604 604
 		MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
605 605
 				"nodnic_port_add_mac_filter failed");
@@ -620,7 +620,7 @@ static void flexboot_nodnic_mcast_detach ( struct ib_device *ibdev,
620 620
 
621 621
 	switch (qp->type) {
622 622
 	case IB_QPT_ETH:
623
-		memcpy(&mac, &gid, sizeof(mac));
623
+		memcpy(&mac, gid, sizeof(mac));
624 624
 		status = nodnic_port_remove_mac_filter(&port->port_priv, mac);
625 625
 		MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
626 626
 				"nodnic_port_remove_mac_filter failed");

Loading…
Cancel
Save