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
 
599
 
600
 	switch (qp->type) {
600
 	switch (qp->type) {
601
 	case IB_QPT_ETH:
601
 	case IB_QPT_ETH:
602
-		memcpy(&mac, &gid, sizeof(mac));
602
+		memcpy(&mac, gid, sizeof(mac));
603
 		status = nodnic_port_add_mac_filter(&port->port_priv, mac);
603
 		status = nodnic_port_add_mac_filter(&port->port_priv, mac);
604
 		MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
604
 		MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
605
 				"nodnic_port_add_mac_filter failed");
605
 				"nodnic_port_add_mac_filter failed");
620
 
620
 
621
 	switch (qp->type) {
621
 	switch (qp->type) {
622
 	case IB_QPT_ETH:
622
 	case IB_QPT_ETH:
623
-		memcpy(&mac, &gid, sizeof(mac));
623
+		memcpy(&mac, gid, sizeof(mac));
624
 		status = nodnic_port_remove_mac_filter(&port->port_priv, mac);
624
 		status = nodnic_port_remove_mac_filter(&port->port_priv, mac);
625
 		MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
625
 		MLX_CHECK_STATUS(flexboot_nodnic->device_priv, status, mac_err,
626
 				"nodnic_port_remove_mac_filter failed");
626
 				"nodnic_port_remove_mac_filter failed");

Loading…
Cancel
Save