svn commit: r341856 - stable/11/sys/ofed/drivers/infiniband/core

Hans Petter Selasky hselasky at FreeBSD.org
Wed Dec 12 10:17:37 UTC 2018


Author: hselasky
Date: Wed Dec 12 10:17:36 2018
New Revision: 341856
URL: https://svnweb.freebsd.org/changeset/base/341856

Log:
  MFC r341521:
  ibcore: Make sure GID index variable gets initialized.
  
  Sponsored by:   Mellanox Technologies

Modified:
  stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c
==============================================================================
--- stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c	Wed Dec 12 10:16:35 2018	(r341855)
+++ stable/11/sys/ofed/drivers/infiniband/core/ib_verbs.c	Wed Dec 12 10:17:36 2018	(r341856)
@@ -458,7 +458,7 @@ int ib_init_ah_from_wc(struct ib_device *device, u8 po
 		       struct ib_ah_attr *ah_attr)
 {
 	u32 flow_class;
-	u16 gid_index;
+	u16 gid_index = 0;
 	int ret;
 	enum rdma_network_type net_type = RDMA_NETWORK_IB;
 	enum ib_gid_type gid_type = IB_GID_TYPE_IB;
@@ -524,8 +524,6 @@ int ib_init_ah_from_wc(struct ib_device *device, u8 po
 								 &gid_index);
 				if (ret)
 					return ret;
-			} else {
-				gid_index = 0;
 			}
 		}
 


More information about the svn-src-stable mailing list